Commit Graph
440 Commits
Author SHA1 Message Date
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
Viktor 7e4b5f9b01 Update src folder
Commit migrated from https://github.com/dotnet/corefx/commit/817c36a05ef2d92e59ce6f5a37e2be50076361b3
2019-04-02 19:21:57 +02:00
Stephen Toub 1de0f651e4 Improve StaticTestGenerator and fix some visibility (dotnet/corefx#36472)
Worked through a bunch of additional assemblies and fixed cases where StaticTestGenerator was doing the wrong thing.  Also fixed the visibility on a bunch of test methods it wasn't able to access.

Commit migrated from https://github.com/dotnet/corefx/commit/475542441df2f054d5e9aa39576019775a5d2f52
2019-03-29 17:40:05 -04: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
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08: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
Filip Navara 74ab2476af Test more invalid values for ThreadPool.[Unsafe]RegisterWaitForSingleObject (dotnet/corefx#34818)
* Test more invalid values for ThreadPool.[Unsafe]RegisterWaitForSingleObject.

* Add checks for argument names in ArgumentOutOfRangeException.

* Disable failing test on NetFX.


Commit migrated from https://github.com/dotnet/corefx/commit/41948bf0fd29ad5b668f6479ae329c91aeb31f32
2019-02-06 09:58:10 -05:00
Michal Strehovský 4ebc486802 Delete unnecessary ApiCompat baselines (dotnet/corefx#33956)
These should no longer be necessary.

Commit migrated from https://github.com/dotnet/corefx/commit/1a68cf7f552581bd5e67406262053d164d4ca087
2018-12-13 11:43:09 -05:00
Stephen Toub 42ba83bf19 Expose\test generic UnsafeQueueUserWorkItem overload (dotnet/corefx#33637)
* Expose\test generic UnsafeQueueUserWorkItem overload

* Suppress ApiCompat warning


Commit migrated from https://github.com/dotnet/corefx/commit/a3cef9c4c589a414a4add343f154bc8eaa9e21fd
2018-11-27 14:55:27 -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 d8493736a7 Expose ThreadPool.UnsafeQueueUserWorkItem(IThreadPoolWorkItem, bool) (dotnet/corefx#32859)
Commit migrated from https://github.com/dotnet/corefx/commit/e67b42976c48b4ac581c11f6cefcb935208deca2
2018-10-23 21:04:12 -07: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
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
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
Simon Nattress 0aa965eb67 Re-enable UAP builds (dotnet/corefx#27531)
* Build uapaot System.Numerics.Vectors

With `Vector<T>` now residing in System.Private.CoreLib, directly reference System.Private.Corelib instead of contracts just like netcoreapp does.

Add uapaot flavor since System.Private.CoreLib has a different strong name key on that platform.

* Make EnsureExtendedPrefixOverMaxPath available to UAP

Add the helper method `System.IO.PathInternal.EnsureExtendedPrefixOverMaxPath` to Common\src\System\IO\PathInternal.Windows.cs. It was previously not visible to UAP since  Common\src\CoreLib\System\IO\PathInternal.Windows.cs is not included in UAP compilation.

* Keep SocketsHttpHandler out of UAP builds

SocketsHttpHandler is not supported in uap and is currently leaking into UAP builds since they've been disabled for a few weeks. Adjust the contract so it's not available to UAP, and clean the implementation assembly so SocketsHttpHandler internals don't leak out into HttpClientHandler.Core.cs.

* Fix GetAddrInfoExSupportsOverlapped UAP build break

`System.Net.NameResolutionPal.GetAddrInfoExSupportsOverlapped` uses LoadLibraryExW which is not compatible with UAP (which only supports LoadLibrary of DLLs within a container). Refactor the helper so UAP returns false.

* Revert "Disable UAP legs per dotnet/corefx#26802 (dotnet/corefx#26822)"

This reverts commit dotnet/corefx@120dce456a.

* Revert "Disable UAP configurations in all configurations build"

This reverts commit dotnet/corefx@2202b4fd49.

* Revert "Disable UAP official builds (dotnet/corefx#26871)"

This reverts commit dotnet/corefx@ef79caf14c.

- Baseline the ApiCompat and GenFacades failures in System.Runtime.Extensions and System.Threading.ThreadPool.
- Adjust naming of files to match branch conventions
- Fix up some configuration issues with uap packaging. The CoreFX.Private.TestUtilities packaging needs updated build tools which can map between uwp6.0 and netstandard2.0.
- ifdef out Thread.GetCurrentProcessorId until we get a new System.Private.CoreLib.


Commit migrated from https://github.com/dotnet/corefx/commit/c9cdfba45e62eeac28ef554d8bbdfdd620a0fd15
2018-03-01 17:59:35 -08:00
Stephen Toub 41524bf7b8 Change new ThreadPool.QueueUserWorkItem overload to be generic
Commit migrated from https://github.com/dotnet/corefx/commit/3980e74d867f260702310d59773fa1d5a28b81f9
2018-02-28 08:13:58 -05: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
Koundinya Veluri 50b43e78cc Add test for setting min worker threads in thread pool to 0 (dotnet/corefx#25061)
* Add test for setting min worker threads in thread pool to 0

Related to https://github.com/dotnet/coreclr/issues/14239
Depends on https://github.com/dotnet/coreclr/pull/14864

* Add a verification removed in https://github.com/dotnet/corefx/pull/25144

* Address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/42720da80019ebc63c1757510f41c4dc6bd27ca3
2017-11-14 22:50:26 -05:00
Egor Bogatov 0c4731e2b4 Mark several tests with [SkipOnTargetFramework(TargetFrameworkMonikers.Mono)] (dotnet/corefx#25113)
* skip some tests on mono

* mark more tests with SkipOnMono attribute

* Mark more tests with [SkipOnMono]

* remove SkipOnMono from SqlErrorCollectionTest

* add comments


Commit migrated from https://github.com/dotnet/corefx/commit/25f80ade543903293ae08ac091cffd457a7a9ad4
2017-11-12 22:42:47 -05:00
Koundinya Veluri da420e955d Fix some tests after https://github.com/dotnet/coreclr/pull/14864 (dotnet/corefx#25144)
Commit migrated from https://github.com/dotnet/corefx/commit/6e39d495ad140a96df3d61fa383d38a75fc8dfcc
2017-11-09 07:22:02 -05: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 5e94726b83 Expose/test ThreadPool.QueueUserWorkItem(..., bool preferLocal) (dotnet/corefx#24396)
Commit migrated from https://github.com/dotnet/corefx/commit/59f127d39937a97b5b2bce27c70785b1cde2ade0
2017-10-03 13:37:02 -04:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly

The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.

* Fix Linux BB

* Update the xunit package reference

* Fix wrong condition on one of the tests

* Update the ConditionalFact/Theory to use Type as a parameter


Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
2017-08-10 22:37:36 -07:00
Santiago Fernandez Madero 503b9b1412 Revert "Have the uap version of RemoteExecutorTestBase.RemoteInvoke wait in a… (dotnet/corefx#21780)" (dotnet/corefx#22069)
This reverts commit dotnet/corefx@066ad32f13.

Commit migrated from https://github.com/dotnet/corefx/commit/6223f37edf834a3be374f196cda27e6fa91889bd
2017-07-10 18:17:53 -07:00
Koundinya Veluri 3dc57bb832 Have the uap version of RemoteExecutorTestBase.RemoteInvoke wait in a… (dotnet/corefx#21780)
* Have the uap version of RemoteExecutorTestBase.RemoteInvoke wait in a background thread

Fixes dotnet/corefx#21275

* Fix build

* Address feedback

* Fix build

* Fix test

* Fix test

* Fix something


Commit migrated from https://github.com/dotnet/corefx/commit/066ad32f1352fe5325998b997b93a0e0cb54cf58
2017-07-10 09:20:22 -07:00
Jeremy Koritzinsky e4b5458b85 Make System.Threading.ThreadPool compile for AOT (dotnet/corefx#21467)
Commit migrated from https://github.com/dotnet/corefx/commit/879e6e061ce5c658a75ba043427d8ac15e579460
2017-06-23 14:06:54 -04:00
Anton Lapounov fcd3cf2194 Fix ThreadPool tests for uapaot. (dotnet/corefx#21049)
Fix ThreadPool tests for uapaot.

Commit migrated from https://github.com/dotnet/corefx/commit/7208a27c62cdf053eab2f51f311df422b781fd21
2017-06-14 15:04:46 -07:00
Eric St. John af1d155bf6 Remove help VS comments
Many CSProjs included the comment
`<!-- Help VS understand available configurations -->`

These aren't handled well by the tooling that rewrites projects and weren't providing much value.

Remove them.


Commit migrated from https://github.com/dotnet/corefx/commit/5ba948d13e3177c2c7075b6b00791e574bfa0860
2017-05-25 11:10:27 -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
Koundinya Veluri 2dbc96639d Add test for thread pool concurrent initialization (dotnet/corefx#18174)
Add test for thread pool concurrent initialization

Depends on dotnet/coreclrdotnet/corefx#10869
Fixes dotnet/coreclrdotnet/corefx#10521

Commit migrated from https://github.com/dotnet/corefx/commit/c1e823f78d6289c1f3ed4d21d384c0a808b41c5e
2017-04-12 10:34:18 -07:00
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.

This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.

As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).

Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.

The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility


Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
2017-04-10 12:51:50 -07:00
Wes Haggard eb1f0e0530 Remove all .builds files under pkg/ref/src/tests library folders
Commit migrated from https://github.com/dotnet/corefx/commit/b60cbe5a2edb5ef3b88a7738507822d13d125d62
2017-02-15 16:32:03 -08:00
Tarek Mahmoud Sayed addda8630e Enable tests to compile with netstandard (dotnet/corefx#15956)
* Enable tests to compile with netstandard

Most of the tests have netstandard configurations and it doesn't compile. the changes here is to fix the configurations and the tests to compile.
This is important step to get netfx tests compile too as we are in most of the time netfx fallback to netstandard configuration

The changes include some fixes to compile teh sources too.

* Fix System.Collections.Immutable

* update src configuration

* remove netstandard17 defines

* Split netcoreapp code to its own files

* Remove 17 from the test class name


Commit migrated from https://github.com/dotnet/corefx/commit/15b4f51c2f3cb924840e5407bb8d5fe03bb282ea
2017-02-08 15:32:53 -08:00
Jose Perez Rodriguez d9c497be12 Prepare uap package (dotnet/corefx#15866)
Prepare uap package

Commit migrated from https://github.com/dotnet/corefx/commit/afaaf450d1869992dcf4f51c627f16145cf9c974
2017-02-08 10:39:37 -08:00
Wes Haggard f2fd0ea78a Update Solution files to use windows path slashes.
Commit migrated from https://github.com/dotnet/corefx/commit/f8ba7c412d06d8e4d4e6278502d4dd771a0f10bb
2017-02-03 16:31:48 -08:00
Eric St. John c2dc83e56a Sync BuildConfiguration with project PropertyGroups
Commit migrated from https://github.com/dotnet/corefx/commit/758a0e16e8c5af8741d14043f4bef1d15a79a377
2017-02-03 08:34:24 -08:00
Eric St. John 83ddd73043 System.Private.CoreLib is OSGroup-specific
Make sure that we represent System.PrivateCoreLib as OSGroup specific
since it exposes different types on Windows vs Unix.


Commit migrated from https://github.com/dotnet/corefx/commit/d549c08d12f32c6c8bead3a98cfce9d0fe9dd10d
2017-02-03 08:32:14 -08:00
Wes Haggard c4e17cd362 Update all solution files using solution generation tool
Commit migrated from https://github.com/dotnet/corefx/commit/a822a266821cf79df96cdd77d2a3d44f1510d9a0
2017-02-02 15:44:45 -08:00
Wes Haggard 4effd546bc Add ProjectGuids for all projects and empty configs for projects without BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/d00bb5d18ac91189b12ed2fb7131d0ff62da9034
2017-02-02 15:02:57 -08:00
Eric St. John c61e84f6ec Clean up desktop Configurations
Remove all cruft from projects related to building desktop configs which
now build in standard repo.


Commit migrated from https://github.com/dotnet/corefx/commit/93b36cc273391a40552613800b6fdaa8685179ae
2017-01-31 19:25:30 -08:00
Eric St. John a39501e3ae Remove desktop config when in NETStandard.Library
Exceptions for types missing from netstandard facade:
- System.Data.Common - DbColumn, DbDataReaderExtensions, IDbColumnSchemaGenerator
- System.Diagnostics.StackTrace - StackFrameExtensions
- System.Numerics.Vectors - Vector, Vector<T>
- System.Runtime.Serialization.Primitives - ISerializationSurrogateProvider
- System.Runtime.Serialization.Xml - DataContractSerializerExtensions
- System.Security.Cryptography.Cng - AesCng, TripleDESCng <link>
- System.Threading.Overlapped - PreAllocatedOverlapped, ThreadPoolBoundHandle
- System.Xml.XPath.XDocument - XDocumentExtensions


Commit migrated from https://github.com/dotnet/corefx/commit/83b3046e1f63c752ee0d69e8b847d633724d90b1
2017-01-31 18:32:00 -08:00
Eric St. John 2ef0e9bfd8 Sync PropertyGroups and BuildConfigurations
Commit migrated from https://github.com/dotnet/corefx/commit/7e4792af39bd7faba20dd3390b411f3afaee3c66
2017-01-30 13:23:56 -08:00
Jose Perez Rodriguez f9d4e6795d Removing netstandard configurations for things that are bellow netstandard (dotnet/corefx#15373)
Removing netstandard configurations for things that are bellow netstandard

Commit migrated from https://github.com/dotnet/corefx/commit/c656446f01db4b902b0c06b19551cc30d9dd9c6b
2017-01-24 09:40:19 -08:00
Jose Perez Rodriguez a0ffb9b029 Removing System.Private.CoreLib from TargetingPack (dotnet/corefx#15357)
Removing System.Private.CoreLib from TargetingPack

Commit migrated from https://github.com/dotnet/corefx/commit/446e0057ed1491fd1f41ffb06357dee445131622
2017-01-20 17:07:38 -08:00
Jose Perez Rodriguez dd708b105d Adding missing Configurations.props for refs and fixing the existing ones (dotnet/corefx#15291)
Adding missing Configurations.props for refs and fixing the existing ones

Commit migrated from https://github.com/dotnet/corefx/commit/2847e0ec9f7c9ac42d44d2bc8c6fd39e504b7a9b
2017-01-19 16:38:55 -08:00
Eric St. John 774105be10 Remove packages from NETStandard2.0
Related to https://github.com/dotnet/corefx/commit/dotnet/corefx@0797813bfe3a9e6d04d4bfaa865b477bb26f8ce2

This removes packages where the types have been moved into
netstandard.dll in netstandard2.0.

These types are supported as follows:
1. In a netstandard2.0+ project via NETStandard.Library package's
    netstandard.dll
2. In a netstandard1.x project via contract assembly packages which
    ship from servicing branches.
3. In a framework specific project via the framework's targeting pack
    or framework package.


Commit migrated from https://github.com/dotnet/corefx/commit/99009fb3bc737af9d455ea0920b22347f69a78ff
2017-01-18 21:01:34 -08:00