Commit Graph
412 Commits
Author SHA1 Message Date
Viktor Hofer cacc1ff968 Remove NetNative uapaot support (dotnet/corefx#38170)
* Remove NetNative uapaot support

* Remove uapaot assets from packages

* Disable emit lightweight and ilgen version check


Commit migrated from https://github.com/dotnet/corefx/commit/ab58ff6e649852b85fdb99b15992a2fa3a7d8834
2019-06-06 21:39:46 +02:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Anirudh Agnihotry 2c7c4ec9e2 removing partial facades from netcoreapp\uap reference assembly build (dotnet/corefx#37591)
Commit migrated from https://github.com/dotnet/corefx/commit/f5be0283c5e00dd823a41f671f9c9a41170f0a85
2019-05-13 21:58:20 -07:00
Jose Perez Rodriguez 7d8177c8c3 Fix VS Configurations for all projects in corefx (dotnet/corefx#37477)
Commit migrated from https://github.com/dotnet/corefx/commit/1c48331eb5784c58b81309665257f454abd7d322
2019-05-06 14:46:10 -07:00
Stephen Toub 335184a606 Add ManualResetValueTaskSourceCore / AsyncIterateMethodBuilder to Microsoft.Bcl.AsyncInterfaces (dotnet/corefx#37320)
* Add ManualResetValueTaskSourceCore / AsyncIterateMethodBuilder to Microsoft.Bcl.AsyncInterfaces

These two types needed modifications to target .NET Standard 2.0 and are the necessary pieces to enable the compiler to compile async iterators.

- Copied ManualResetValueTaskSourceCore.cs from coreclr and tweaked it.  I opted to do this rather than ifdef because the changes are not localized and I didn't want to significantly perturb the primary implementation.
- Added a few ifdefs to the shared AsyncIteratorMethodBuilder.  It already had ifdefs, so I just added to it.
- Added a test project, and included the existing ManualResetValueTaskSourceCore tests.  I had to disable two of the tests because of some of the optimization differences.
- Augmented those tests to validate that the compiler is able to successfully generate iterators and await foreach them.

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/07b6760a1a84251a50f744e585e4da5f71a25e68
2019-05-01 11:57:35 -04:00
Anirudh Agnihotry bc2d80c6f4 Removed netcoreappaot configuration from corefx (dotnet/corefx#36739)
* netcoreappaot-Windows_NT regex removed

* netcoreappaot-WebAssembly;\n regex removed

* netcoreappaot-Windows_NT-Debug;netcoreappaot-Windows_NT-Release;
regex removed

* netcoreappaot; regex removed

* netcoreappaot-Debug;netcoreappaot-Release; removed

* removing rest of occurences of netcoreappaot

* deleteing the netcoreappaot apicompat files


Commit migrated from https://github.com/dotnet/corefx/commit/e9d1a10ed1d38a8b1ed599b3b5be09b8349f8ea8
2019-04-09 14:07:31 -07:00
Anirudh Agnihotry 41b0f07c94 Changes required to use newGenfacadeModel (dotnet/corefx#36126)
* making corefx compatible with newGenfacadesTask

correcting the new runtime variable

updating genfacades version to latest

fixes uap build and removes extra seed ype preferences for uapaot

* adding build configuration, comments and updating genfacadwa version

* fixing build  for netcoreapaot

* removing netcoreappaot build from all configurations build


Commit migrated from https://github.com/dotnet/corefx/commit/52206f12e2a34b708f33304d9b076b4958fbaa5e
2019-04-08 16:01:30 -07:00
Adam Sitnik fc150aecda remove System.Threading.Tasks.Extensions.PerformanceTests
Commit migrated from https://github.com/dotnet/corefx/commit/8d9f3d110780f72b34a3adf94cd33ad72bd9c605
2019-03-05 08:02:20 +01:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01:00
Viktor Hofer b6ef84842c Thread principal unauthenticated (dotnet/corefx#35112)
* Remove bind error for thread principal

* Disable threadpool test for uapaot

* Disable MailMessage reflection test on uapaot

* Disable ValueTask reflection tests on uapaot

* Guard System.TestEnvironment against ILC

* Revert AppDomain UnauthenticatedPrincipal change


Commit migrated from https://github.com/dotnet/corefx/commit/0424e9db4628029b3308380f26312c79912bfb42
2019-02-12 00:14:08 +01:00
Stephen Toub 16699be75b Fix ManualResetValueTaskSource tests missing event Waits (dotnet/corefx#34603)
These are sporadically failing because they're missing required .Wait() calls on an event that gets set.

Commit migrated from https://github.com/dotnet/corefx/commit/c0da1a5b0b5028e43ea5ad5369672f298b272daa
2019-01-15 14:14:49 -05:00
Jan Kotas d7963978c2 Stop building System.Threading.Tasks.Extensions package
Fixes build breaks after shared CoreLib updates


Commit migrated from https://github.com/dotnet/corefx/commit/f83cc7ec2e4aadf07c0f943a50906a144ad2e544
2018-12-24 20:21:44 -10:00
Stephen Toub 2b00ae951d Merge pull request dotnet/corefx#33924 from dotnet-maestro-bot/master-UpdateDependencies
Update CoreClr to preview-27209-02 (master)

Commit migrated from https://github.com/dotnet/corefx/commit/8639a5993f54803831c84e7609c93d530fd9ae3c
2018-12-09 12:01:59 -05:00
Stephen Toub 50a85578f4 Expose\test CancellationToken parameter to GetAsyncEnumerator
Commit migrated from https://github.com/dotnet/corefx/commit/27d9376f663f455672bf36a9de70fe8aebb4ecf7
2018-12-09 08:52:15 -05:00
AraHaan f108845249 Turn on xml documentation validation globally. (dotnet/corefx#32934)
* Turn on xml documentation validation globally.

* Ignore warning 1591 globally.

* Fixed build failures.

* Move the Original DocumentationFile Condition to the Group.

Now NoWarn has no Condition on it.

* Fixed NoWarn overwrite.

* Update Directory.Build.props

* Update System.Runtime.CompilerServices.Unsafe.ilproj

* Update file on github web.

Sadly it seems I can only do this on my phone now. RIP

* Update System.Security.Cryptography.Csp.csproj

* Update Directory.Build.props

* Suppress some warnings.

* Fixed remaining compile errors.

* Update System.Diagnostics.StackTrace.csproj

* Update System.Security.Cryptography.Xml.csproj

* Fixed xml documentation typo in Microsoft.VisualBasic.

* Fixed missing suppressions.

* Suppress more errors.

* Suppress more errors.

* Suppress more errors.

* Suppress even more errors.

* Suppress more errors.

* Update Directory.Build.props

* Suppress more errors.

Also fix a documentation issue specific to OSX.

* Suppress more errors.

* Suppress more errors.

* Disable xml documentation for System.Diagnostics.Process.

* Do not overwrite NoWarn.

* Enable docs for S.D.P


Commit migrated from https://github.com/dotnet/corefx/commit/6abb4cd0bafa2a3c7486fb23bcc611bd211d0f8e
2018-12-08 22:21:50 -08:00
Viktor Hofer 66e8f64d31 Consume Microsoft.DotNet.CoreFxTesting package (dotnet/corefx#33423)
* Consume Microsoft.DotNet.CoreFxTesting package

* Remove code coverage dedicated runtime dir config files and switch to Coverlet

* Add global tool support in corefx

* Update code coverage docs

Commit migrated from https://github.com/dotnet/corefx/commit/ae38b7cc3762d832fdcebe27a0aab7b22ab2f3fa
2018-12-06 02:56:11 +01:00
Jose Perez Rodriguez def4a493e8 Removing Reference assets from packages which contain runtime-specific dependencies when targeting Desktop. (dotnet/corefx#33510)
* Removing Reference assets from packages which contain runtime-specific dependencies when targeting Desktop. (dotnet/corefx#33254)

* Removing Reference assets from packages which contain runtime-specific dependencies when targeting Desktop.

* Adding validation target to catch other instances of packages that need the property

* Fixing target to check all exclude compiles. Undoing changes on two packages that are not required any more.

* Update package index to contain the right versions

* Fixing packaging build errors


Commit migrated from https://github.com/dotnet/corefx/commit/6832425094123c858b9e5da02469c98ca8c200c4
2018-11-16 06:34:34 -08:00
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