Commit Graph
395 Commits
Author SHA1 Message Date
Stephen Toub eec11eed6c Merge pull request dotnet/corefx#33104 from stephentoub/exposeasync
Expose async iterator-related types

Commit migrated from https://github.com/dotnet/corefx/commit/637e109e7d085b8c01b5ba22521c021f8204ff12
2018-11-07 21:14:46 -05:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Stephen Toub 0f2a254695 Use new ManualResetValueTaskSourceCore in tests, and add tests
Commit migrated from https://github.com/dotnet/corefx/commit/ae7bca43f10419e300e1084c0478985d8405cc7e
2018-10-30 12:41:05 -04:00
Paulo Janotti c6efbc3cf4 Coverage do not target CoreLib in bulk (dotnet/corefx#32537)
* Coverage do not target CoreLib in bulk

* Fix 1 project add temp nop to 2 others

* PR feedback: reuse property to disable code coverage

* PR Feedback: add dedicated property to target runtime

* System.Transactions.Local.Tests taking too long on PR


Commit migrated from https://github.com/dotnet/corefx/commit/95eeecb5184e414810bc94fdb496c5748289a720
2018-10-02 06:05:11 -07:00
Morgan Brown abc0943945 Build managed code and packages for WebAssembly/netcoreappaot (dotnet/corefx#32045)
Adds support for a WebAssembly netcoreappaot configuration for building managed libraries and packages. This is enough to produce a package of libraries that CoreRT's WebAssembly implementation can consume.


Commit migrated from https://github.com/dotnet/corefx/commit/2b868f80c307a514dfafb7eb166dad3dbc2ed26b
2018-09-11 21:57:52 -07:00
Wes Haggard 6dcf8b8bfb Update the configurations properties in projects
Commit migrated from https://github.com/dotnet/corefx/commit/fea86686c620242ce7e1911418f2fba7c4d52d4d
2018-08-29 09:45:04 -07:00
Wes Haggard 4a22d24ae7 Add netcoreapp2.1 placeholder configuration to System.Threading.Tasks.Extensions
This placeholder prevents the netstandard ref from being bin-placed into
the ref/netcoreapp2.1 folder which causes issues because types were moved
down to system.runtime in 2.1.


Commit migrated from https://github.com/dotnet/corefx/commit/0c68c2fe46363690dd8c680fa29f0b72adf8a1c1
2018-08-29 09:39:07 -07:00
Wes Haggard f6e2a60d67 Update harvested package versions
Commit migrated from https://github.com/dotnet/corefx/commit/5312b96dbdf8d504f35903aa86baca52a3254d16
2018-08-28 17:56:46 -07:00
Viktor Hofer a177aa4888 Promote tests to netstandard (dotnet/corefx#31966)
* Promote tests to netstandard

* Disable uap test run

* Uncomment constant define, file condition positive

* Disable failing uap tests


Commit migrated from https://github.com/dotnet/corefx/commit/559d5401e6bb8a487ff499f4beff5bf5d83961a3
2018-08-27 20:03:05 +02:00
Viktor Hofer 70bffcd308 Enable netfx perf runs and promote to netstandard
Commit migrated from https://github.com/dotnet/corefx/commit/1b33f6c57bdcb4a2be715a8eaf7ec2483dc5c6c0
2018-08-23 19:55:26 +02:00
Morgan Brown 5851b3de9a Add netcoreappaot target group (dotnet/corefx#30980)
Changes to add a new netcoreappaot target group, similar to netcoreapp but it builds against the .NET Native core libraries. A couple of libraries, such as System.Linq.Expressions, have aot-specific definitions that are enabled for netcoreappaot.

Commit migrated from https://github.com/dotnet/corefx/commit/3333166174e54ae9435c31e0a68a6784e9aacc41
2018-08-21 18:19:59 -07:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Tarek Mahmoud Sayed 8f1923fde6 Add Xamrin platform placeholder in S.T.Tasks.Extensions package (dotnet/corefx#29830)
Commit migrated from https://github.com/dotnet/corefx/commit/19426a761c94bb17eb761e02dee47ba98e76e916
2018-05-21 17:58:43 -07:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
Stephen Toub fea199a38f Improve ManualResetValueTaskSource prototype (dotnet/corefx#29468)
In .NET Core 2.1 we added the public `IValueTaskSource` and `IValueTaskSource<T>` interfaces, with associated support in `ValueTask` and `ValueTask<T>`, and while we implemented the interfaces on several types internally, we didn't expose any public implementations.

We should consider exposing several in the future, including a manual-reset and an auto-reset IValueTaskSource implementation.  We already have a ManualResetValueTaskSource implementation in our tests.  This commit improves upon it in a few ways:
- Separates out the logic into a separate public struct.  The ManualResetValueTaskSource class wraps the struct, giving developers a choice to either use the class directly, or to embed the struct in their own implementation.
- Fixes context capture to behave more similarly to Task, handling both SynchronizationContext and TaskSchedulers
- Adds a prototype implementation of an IAsyncEnumerable, demonstrating how the compiler could utilize ManualResetValueTaskSourceLogic in its implementation.

This is all still prototype, used only in tests.

Commit migrated from https://github.com/dotnet/corefx/commit/df43abbed58fa534a36ad1840ff597efc7b00f85
2018-05-02 19:56:16 -07:00
Wes Haggard b77d5be997 Fix package validation issues after version changes
Move private netcoreapp package to 2.2

Update package index to have the new inbox versions for
netcoreapp2.2 and uapvnext


Commit migrated from https://github.com/dotnet/corefx/commit/241403223aa5ffde3057c435070d2e0c88861657
2018-04-27 14:56:20 -07:00
Wes Haggard fc526e8605 Bump assembly versions for libraries with packages
Commit migrated from https://github.com/dotnet/corefx/commit/6a1b5c0aeee747a535579da7374c05b8d878fb65
2018-04-27 14:56:18 -07:00
Eric St. John e092408277 Ensure framework assemblies have higher version than those applied to previous frameworks when API or type location changes
Now that roll forward is supported we must version our assemblies when surface area changes or when types are moved.

I did a scan of all assemblies that ship an implementation for netcoreapp2.0, have a version >= the version inbox,
and the implementation exposes different API or has moved types.


Commit migrated from https://github.com/dotnet/corefx/commit/11f957988b7e2e9642fa99ab11f50fbf6f74ce13
2018-04-23 11:45:50 -07:00
Stephen Toub 09a12acef5 Add tests for ValueTask type safety (dotnet/corefx#28942)
Commit migrated from https://github.com/dotnet/corefx/commit/1c04c3ca40c702cf9f207e6fbe4b1017e4873958
2018-04-12 16:04:00 -04:00
Stephen Toub 95e0d08604 Add more ValueTask perf tests (dotnet/corefx#28937)
Commit migrated from https://github.com/dotnet/corefx/commit/d66a9cda99411be67f6785d0551154c07d0362ac
2018-04-09 14:41:25 -04:00
Simon Nattress 52c8e150c1 Update UAP System.Private.CoreLib to unblock UAP builds (dotnet/corefx#27805)
* Update UAP targeting pack

To fix the flow from CoreCLR and CoreFX into TFS, update the targeting pack with a version of System.Private.CoreLib that has an updated signature for Stream.WriteAsync. This should be sufficient to re-enable uapaot builds so we can get a new set of uap packages.

* Revert "Disable uapaot builds on several projects"

This reverts commit dotnet/corefx@ebe14686a8.



Commit migrated from https://github.com/dotnet/corefx/commit/671b10bb21668d8432f066a4307c269a98a66ea8
2018-03-08 16:40:00 -08:00
Eric St. John 98c0015605 Update SLNs and projects to be in sync with configurations
Commit migrated from https://github.com/dotnet/corefx/commit/8ce7e620e1b5001be002598f4d10d4becdd77a49
2018-03-08 08:25:31 -08:00
Stephen Toub 79eb04c7c4 Fix System.Threading.Tasks.Extensions packaging for 2.1 (dotnet/corefx#27760)
Commit migrated from https://github.com/dotnet/corefx/commit/c37e3e5f6b2a3fce69cffe1096ff5c491ed3639d
2018-03-06 17:48:32 -05:00
Stephen Toub 7482b6a4b0 Expose and roll out ValueTask extensibility
This commit does several things:
- Exposes the new `ValueTask` extensibility model being added in coreclr.  The ValueTask-related files will separately be mirrored over to corefx to enable the netstandard build of System.Threading.Tasks.Extensions.
- Adapts all `Stream`-derived types to return `ValueTask` instead of `Task` from `WriteAsync`.
- Changes the new `WebSocket` `SendAsync` method to return `ValueTask` instead of `Task`, and updates the `ManagedWebSocket` implementation accordingly.  Most `SendAsync`s on `ManagedWebSocket` should now return a `ValueTask` that's either completed synchronously (no allocation) or using a pooled object.  It now uses the underlying transport's new `WriteAsync` overload that returns `ValueTask`.
- Switches more uses of `ReadAsync` and `WriteAsync` over to the new overloads, including in Process, DeflateStream, BrotliStream, File, HttpClient, SslStream, WebClient, BufferedStream, CryptoStream,
- Removed some unnecessary array clearing from various routines using ArrayPool (after the clearing was added we changed our minds and decided clearing was only necessary in very specific circumstances)
- Implements a custom `IValueTaskSource` in Socket, such that async receives and sends become allocation-free (ammortized).  `NetworkStream` then inherits this functionality, such that its new `ReadAsync` and `WriteAsync` are also allocation-free (in the unbounded channel implementations; we can subsequently add it in for bounded).
- Implements a custom `IValueTaskSource` in System.Threading.Channels, such that reading and writing are ammortized allocation-free up to one concurrent reader and writer.
- A few random things I noticed as I was going through, e.g. missing ConfigureAwait, some incorrect synchronization in tests, etc.
- Adds a ton of new tests, mainly in System.Threading.Tasks.Extensions, System.Threading.Channels, and System.Net.Sockets.


Commit migrated from https://github.com/dotnet/corefx/commit/6d1671b2cfcf130b7bc6c059bb0508073426532a
2018-03-02 09:56:25 -08:00
Stephen Toub 3a9736e5a1 Adjust System.Threading.Tasks.Extensions for IValueTaskSource
Commit migrated from https://github.com/dotnet/corefx/commit/803466487e65ca23579139f2565d960404775cd9
2018-03-01 10:27:08 -05:00
Stephen Toub 1a5d97f0d4 Mark {Configured}ValueTaskAwaiter as readonly in contracts (dotnet/corefx#27030)
Commit migrated from https://github.com/dotnet/corefx/commit/4ff3c791c0eac88d96f135b16fc5425d48e02211
2018-02-11 05:15:15 -05:00
Stephen Toub 4849e0d7f0 Use ValueTask shared from corelib (dotnet/corefx#26636)
Commit migrated from https://github.com/dotnet/corefx/commit/7b6abc253912de3caeddfcb06aa3f619255351f7
2018-02-01 17:22:00 -05:00
Stephen Toub 94a2933365 Add ValueTask perf tests (dotnet/corefx#26706)
Basic perf tests for ValueTasks.

Commit migrated from https://github.com/dotnet/corefx/commit/623af48d03bffb857616be5cc9c46a0f19c18cc6
2018-01-31 14:04:08 -05:00
Stephen Toub 3a2a815f55 Remove ValueTask<T>.CreateAsyncMethodBuilder from ref (dotnet/corefx#26703)
Commit migrated from https://github.com/dotnet/corefx/commit/9ba6220b3d8846d7c5bb1a28b9c3fb10270a98a3
2018-01-31 09:04:36 -05:00
Wes Haggard fc9b090ef0 Update references assemblies to include private fields for structs
Contributes to https://github.com/dotnet/corefx/issues/6185.


Commit migrated from https://github.com/dotnet/corefx/commit/2e97d43060dfb589907a15dbfef0cc7db6e90546
2018-01-12 08:53:41 -08:00
Wes Haggard c898bc6385 Freeze the assembly version for System.Threading.Tasks.Extensions
The APIs in System.Threading.Tasks.Extensions have been put inbox on
.NET Core 2.0 and UAp and also type-forwarded into System.Runtime. This
means the APIs in the contract can no longer version for the netstandard
reference. Any new API's have to be added to the platform specific reference
assembly.

This also updates the package to include the inbox placeholders for
netcoreapp and uap.


Commit migrated from https://github.com/dotnet/corefx/commit/8cbc0eb04414d85843689454d02d971fed9236d5
2017-12-14 16:49:08 -08:00
Jan Kotas 27d98c0776 Delete unnecessary SecurityCritical and SecuritySafeCritical annotations
Commit migrated from https://github.com/dotnet/corefx/commit/0bb106232745aedfc0d0c5a84ff2b244bf190317
2017-11-19 10:37:38 -08:00
Stephen Toub 54c1d578d8 Mark applicable structs as readonly
Commit migrated from https://github.com/dotnet/corefx/commit/54e889a7c71bf22f9f1ef244a9d040fee64c74d5
2017-11-03 09:48:47 -04:00
Santiago Fernandez Madero b9d768589e Fix System.Data.Odbc configurations for support package and run UpdateVSConfigurations (dotnet/corefx#24752)
* Fixed odbc configurations for compat package

* Run UpdateVSConfigurations

* Remove Default Configurations to help VS... comment from csproj's

* Remove from System.Buffers as well


Commit migrated from https://github.com/dotnet/corefx/commit/bcc59b2e74090cfbcc4d6e7c245c172744e9d46b
2017-10-23 18:24:28 -07:00
Stephen Toub a1672b95d2 Remove stale SetStateMachine call in test
Commit migrated from https://github.com/dotnet/corefx/commit/52bd372e160f9c1c9e84fb5345326da865ed6a12
2017-09-22 20:40:09 -04:00
Eric St. John 6c5a247c17 Fix library packages overlapping with framework packages
Many library packages overlap with assemblies we include in our framework packages.

In the first release we handled this by preventing the library package from applying any
assets.

This becomes problematic if the reference assembly needs to version, and especially
if the library wants to add API.  The new version will be greater than what was previously
shipped inbox, and we wouldn't want to restrict the new version just to future TFMs.

To address this problem I've made a couple fixes:
1. For packages which are shipping brand new API that's not present in desktop, we'll
omit any placeholders and allow conflict resolution to decide if the library package
or framework package should be used (based on version).  In some cases this required
bringing some configurations into the package so that it could always be "up to date".

2. For packages which are just exposing API in desktop, and thus already tied/anchored
to netstandard versions, we'll freeze the reference assembly version for the non-desktop
builds.  This ensures that the reference assembly will never move past the version that's
inbox in the framework package.

Update BuildToolsVersion to 2.0.0-prerelease-01931-01


Commit migrated from https://github.com/dotnet/corefx/commit/7ee51be7ed472a12266c8cc2ab25a9e1862c1d00
2017-09-01 09:01:41 -07:00
Eric St. John b2dae07f2b Update VS configurations
Commit migrated from https://github.com/dotnet/corefx/commit/238bf3302817a910fac3968f4ac826424294ab0c
2017-08-29 08:49:24 -07:00
Aditya Mandaleeka c62b836590 Delete bad test from AsyncValueTaskMethodBuilderTests. (dotnet/corefx#23356)
Commit migrated from https://github.com/dotnet/corefx/commit/41fd569ab880073a0140c8aee232ee118250a450
2017-08-17 17:15:43 -04:00
Stephen Toub 655d2e22d6 Expose ValueTask from System.Runtime in netcoreapp (dotnet/corefx#22559)
ValueTask will be used/exposed by types in System.Runtime, so it also needs to be exposed from there.  This also requires pulling down a few related types.

Commit migrated from https://github.com/dotnet/corefx/commit/f080986157a9a7edd083ef85a3316f745e5da6ad
2017-07-25 16:03:45 -04:00
Koundinya Veluri cb7cbe78dd Enable Tasks.Extensions tests on uap (dotnet/corefx#22481)
Commit migrated from https://github.com/dotnet/corefx/commit/d37fcb8477f8285d132c1a3734be82bb62140a02
2017-07-21 14:45:07 -07:00
Stephen Toub fc0b29697d Clean up source for ValueTask (dotnet/corefx#21771)
Primarily using expression-bodied members

Commit migrated from https://github.com/dotnet/corefx/commit/5a6d8ca975b512eeeea7404c740afcf865128405
2017-07-12 17:05:00 -04:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Eric Mellino 86be53fa83 Update VS configurations and ProjectGUID's for 4 new ref projects.
Commit migrated from https://github.com/dotnet/corefx/commit/40954b6656b3f06a35bb55d3dfd31d8e6888c61c
2017-05-24 11:28:01 -07:00
Eric Mellino c054d234e9 Add a "GenerateReferenceAssembly" target and generate four assemblies.
* The GenerateReferenceAssembly target can be run as a manual step on a
  project. When run, it produces a source code file <Assembly>.cs, in the
  reference assembly folder for the library. This source file can be used
  to compile an equivalent reference assembly.
* Use the target to generate reference assemblies for the following
  libraries:
  * System.Collections.Immutable
  * System.Reflection.Metadata
  * System.Threading.Tasks.Dataflow
  * System.Threading.Tasks.Extensions


Commit migrated from https://github.com/dotnet/corefx/commit/c92788e773afae26bc61e93e83a0f3c2b5eee91a
2017-05-24 11:13:10 -07:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Eric St. John ac815b80bb Reorder pkgproj items
Reorder items so that pkgprojs have consistent alphabetical ordering:
- ProjectReference
- HarvestIncludePaths
- InboxOnTargetFramework
- SuppressMetaPackage
- ValidatePackageSuppression


Commit migrated from https://github.com/dotnet/corefx/commit/722f331f19ee1a72fdee8e2c667e8aa5b9c0fc27
2017-04-18 13:29:00 -07:00
Eric St. John 08a06887a3 Re-enable package validation and clean up package content
Commit migrated from https://github.com/dotnet/corefx/commit/72002dbb7e3e657adaeb002feca0399d9667a54b
2017-04-18 13:28:50 -07:00
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00