diff --git a/docs/coding-guidelines/libraries-packaging.md b/docs/coding-guidelines/libraries-packaging.md
index caf447ca598a10..f8dd661f077650 100644
--- a/docs/coding-guidelines/libraries-packaging.md
+++ b/docs/coding-guidelines/libraries-packaging.md
@@ -8,7 +8,7 @@ To add a library to the .NETCore shared framework, that library's `AssemblyName`
The library should have both a `ref` and `src` project. Its reference assembly will be included in the ref-pack for the Microsoft.NETCore.App shared framework, and its implementation assembly will be included in the runtime pack.
-Including a library in the shared framework only includes the best applicable TargetFramework build of that library: `$(NetCoreAppCurrent)` if it exists, but possibly `netstandard2.1` or another if that is best. If a library has builds for other frameworks those will only be shipped if the library also produces a [Nuget package](#nuget-package). If a library ships both in the shared framework and a nuget package, it may decide to exclude its latest `$(NetCoreAppCurrent)` build from the package. This can be done by setting `ExcludeCurrentNetCoreAppFromPackage` to true. Libraries should take care when doing this to ensure that whatever asset in the package that would apply to `$(NetCoreAppCurrent)` is functionally equivalent to that which it replaces from the shared framework, to avoid breaking applications which reference a newer package than the shared framework. If possible, it's preferable to avoid this by choosing to target frameworks which can both ship in the package and shared framework.
+Including a library in the shared framework only includes the best applicable TargetFramework build of that library: `$(NetCoreAppCurrent)` if it exists, but possibly `netstandard2.1` or another if that is best. If a library has builds for other frameworks those will only be shipped if the library also produces a [Nuget package](#nuget-package).
In some occasions we may want to include a library in the shared framework, but not expose it publicly. To do so, include the library in the `NetCoreAppLibraryNoReference` property in [NetCoreAppLibrary.props](../../src/libraries/NetCoreAppLibrary.props). The library should also be named in a way to discourage use at runtime, for example using the `System.Private` prefix. We should avoid hiding arbitrary public libraries as it complicates deployment and servicing, though some platform specific libraries are in this state due to historical reasons.
@@ -61,13 +61,6 @@ By default all TargetFrameworks listed in your project will be included in the p
```
-A common pattern is to build for the latest .NET version, for example to include a library in the shared framework or a transport package, but then excluded this from the NuGet package. This can be done to avoid growing the NuGet package in size. To do this set
-```xml
-
- true
-
-```
-
When excluding TargetFrameworks from a package special care should be taken to ensure that the builds included are equivalent to those excluded. Avoid ifdef'ing the implementation only in an excluded TargetFramework. Doing so will result in testing something different than what we ship, or shipping a nuget package that degrades the shared framework.
### Build props / targets and other content
diff --git a/eng/targetingpacks.targets b/eng/targetingpacks.targets
index da9407c5090d0c..695a238aa3c666 100644
--- a/eng/targetingpacks.targets
+++ b/eng/targetingpacks.targets
@@ -1,11 +1,21 @@
+
+
- $(MicrosoftNetCoreAppFrameworkName)
+ $(MicrosoftNetCoreAppFrameworkName)
+ $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '$(NetCoreAppCurrentVersion)'))">
true
false
false
@@ -38,22 +48,6 @@
Condition="'@(KnownCrossgen2Pack)' == '' or !@(KnownCrossgen2Pack->AnyHaveMetadataValue('TargetFramework', '$(NetCoreAppCurrent)'))" />
-
-
-
-
- $(PkgMicrosoft_NETCore_App)\ref\netcoreapp$(TargetFrameworkVersion.TrimStart('v'))\
-
-
-
-
-
-
-
@@ -61,13 +55,12 @@
-
+
+ '$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<_NetCoreAppTargetFrameworkIdentifier Condition="$([MSBuild]::VersionLessThan($(TargetFrameworkVersion), '5.0'))">netcoreapp
@@ -112,9 +105,10 @@
NuGetPackageVersion="$(ProductVersion)"
PackageDirectory="$(MicrosoftNetCoreAppRefPackDir.TrimEnd('/\'))"
Condition="'%(ResolvedTargetingPack.RuntimeFrameworkName)' == '$(LocalFrameworkOverrideName)' and
- Exists('$(MicrosoftNetCoreAppRefPackDataDir)FrameworkList.xml')" />
+ Exists('$(MicrosoftNetCoreAppRefPackDir)data\FrameworkList.xml')" />
+ Condition="'$(MicrosoftNetCoreAppRuntimePackDir)' != '' and
+ '%(ResolvedRuntimePack.FrameworkName)' == '$(LocalFrameworkOverrideName)'" />
diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets
index 56d428cd34ed57..0bb22a512a9379 100644
--- a/src/libraries/Directory.Build.targets
+++ b/src/libraries/Directory.Build.targets
@@ -246,10 +246,6 @@
-
- true
-
-
false
true
diff --git a/src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj b/src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj
index 8a2a6e74cc7bab..4c1f40cce828db 100644
--- a/src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj
+++ b/src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/Microsoft.Extensions.DependencyInjection.Specification.Tests.csproj
@@ -1,10 +1,11 @@
- netstandard2.0
+ netstandard2.0;net461
true
false
false
+
3.1.15
Suite of xUnit.net tests to check for container compatibility with Microsoft.Extensions.DependencyInjection.
diff --git a/src/libraries/Microsoft.Extensions.Logging.Abstractions/src/Microsoft.Extensions.Logging.Abstractions.csproj b/src/libraries/Microsoft.Extensions.Logging.Abstractions/src/Microsoft.Extensions.Logging.Abstractions.csproj
index d63b42d63f3a67..71e35b67179fa7 100644
--- a/src/libraries/Microsoft.Extensions.Logging.Abstractions/src/Microsoft.Extensions.Logging.Abstractions.csproj
+++ b/src/libraries/Microsoft.Extensions.Logging.Abstractions/src/Microsoft.Extensions.Logging.Abstractions.csproj
@@ -2,7 +2,6 @@
$(NetCoreAppCurrent);netstandard2.0;net461
- true
true
true
diff --git a/src/libraries/Microsoft.Extensions.Logging.Console/src/Microsoft.Extensions.Logging.Console.csproj b/src/libraries/Microsoft.Extensions.Logging.Console/src/Microsoft.Extensions.Logging.Console.csproj
index 9f19864288f3d0..0bb4b2903988da 100644
--- a/src/libraries/Microsoft.Extensions.Logging.Console/src/Microsoft.Extensions.Logging.Console.csproj
+++ b/src/libraries/Microsoft.Extensions.Logging.Console/src/Microsoft.Extensions.Logging.Console.csproj
@@ -2,7 +2,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
true
annotations
$(DefineConstants);NO_SUPPRESS_GC_TRANSITION
diff --git a/src/libraries/Microsoft.Extensions.Logging.EventSource/src/Microsoft.Extensions.Logging.EventSource.csproj b/src/libraries/Microsoft.Extensions.Logging.EventSource/src/Microsoft.Extensions.Logging.EventSource.csproj
index bf3aab8453c9fb..3823f1cfac81d3 100644
--- a/src/libraries/Microsoft.Extensions.Logging.EventSource/src/Microsoft.Extensions.Logging.EventSource.csproj
+++ b/src/libraries/Microsoft.Extensions.Logging.EventSource/src/Microsoft.Extensions.Logging.EventSource.csproj
@@ -2,7 +2,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
true
true
diff --git a/src/libraries/Microsoft.Extensions.Primitives/src/Microsoft.Extensions.Primitives.csproj b/src/libraries/Microsoft.Extensions.Primitives/src/Microsoft.Extensions.Primitives.csproj
index 3843dc8c292d43..25f981a38034e0 100644
--- a/src/libraries/Microsoft.Extensions.Primitives/src/Microsoft.Extensions.Primitives.csproj
+++ b/src/libraries/Microsoft.Extensions.Primitives/src/Microsoft.Extensions.Primitives.csproj
@@ -3,7 +3,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
true
true
- true
false
Primitives shared by framework extensions. Commonly used types include:
diff --git a/src/libraries/Microsoft.Win32.Registry/src/Microsoft.Win32.Registry.csproj b/src/libraries/Microsoft.Win32.Registry/src/Microsoft.Win32.Registry.csproj
index 845a6e4ab2f5e0..b30d83a31cabf5 100644
--- a/src/libraries/Microsoft.Win32.Registry/src/Microsoft.Win32.Registry.csproj
+++ b/src/libraries/Microsoft.Win32.Registry/src/Microsoft.Win32.Registry.csproj
@@ -3,7 +3,6 @@
true
$(DefineConstants);REGISTRY_ASSEMBLY
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netstandard2.0-windows;netstandard2.0;net461-windows
- true
$(NoWarn);CA2249
enable
diff --git a/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj b/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj
index 2b9dada8b1ecc3..90622a10185d78 100644
--- a/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj
+++ b/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj
@@ -3,7 +3,6 @@
true
enable
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netstandard2.0;net461
- true
diff --git a/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.csproj b/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.csproj
index 3d1674e34b356b..01c989df4fef66 100644
--- a/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.csproj
+++ b/src/libraries/System.Collections.Immutable/ref/System.Collections.Immutable.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Collections.Immutable/src/System.Collections.Immutable.csproj b/src/libraries/System.Collections.Immutable/src/System.Collections.Immutable.csproj
index b9993c0d4afcc1..716b12acaf62a2 100644
--- a/src/libraries/System.Collections.Immutable/src/System.Collections.Immutable.csproj
+++ b/src/libraries/System.Collections.Immutable/src/System.Collections.Immutable.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.ComponentModel.Composition/src/System.ComponentModel.Composition.csproj b/src/libraries/System.ComponentModel.Composition/src/System.ComponentModel.Composition.csproj
index cf8fe4f6249a0b..e35314716013a2 100644
--- a/src/libraries/System.ComponentModel.Composition/src/System.ComponentModel.Composition.csproj
+++ b/src/libraries/System.ComponentModel.Composition/src/System.ComponentModel.Composition.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0
- true
enable
false
diff --git a/src/libraries/System.Data.Odbc/src/System.Data.Odbc.csproj b/src/libraries/System.Data.Odbc/src/System.Data.Odbc.csproj
index d6e6bd80456eb9..7a997cf9205c65 100644
--- a/src/libraries/System.Data.Odbc/src/System.Data.Odbc.csproj
+++ b/src/libraries/System.Data.Odbc/src/System.Data.Odbc.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-FreeBSD;$(NetCoreAppCurrent)-illumos;$(NetCoreAppCurrent)-Solaris;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS;$(NetCoreAppCurrent)-tvOS;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1-FreeBSD;netcoreapp3.1-Linux;netcoreapp3.1-OSX;netcoreapp3.1;netstandard2.0;net461-windows
- true
$(NoWarn);CA2249;CA1838
enable
diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/src/System.Diagnostics.DiagnosticSource.csproj b/src/libraries/System.Diagnostics.DiagnosticSource/src/System.Diagnostics.DiagnosticSource.csproj
index ff1472fd799cf3..43b53ad61f6fd3 100644
--- a/src/libraries/System.Diagnostics.DiagnosticSource/src/System.Diagnostics.DiagnosticSource.csproj
+++ b/src/libraries/System.Diagnostics.DiagnosticSource/src/System.Diagnostics.DiagnosticSource.csproj
@@ -5,7 +5,6 @@
$(NoWarn);SA1205;CA1845
enable
$(NetCoreAppCurrent);net5.0;netstandard2.0;net461
- true
diff --git a/src/libraries/System.Diagnostics.EventLog/src/System.Diagnostics.EventLog.csproj b/src/libraries/System.Diagnostics.EventLog/src/System.Diagnostics.EventLog.csproj
index 79220464303ad7..7c18a941872151 100644
--- a/src/libraries/System.Diagnostics.EventLog/src/System.Diagnostics.EventLog.csproj
+++ b/src/libraries/System.Diagnostics.EventLog/src/System.Diagnostics.EventLog.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;net461;netstandard2.0
- true
$(NoWarn);CA1838
diff --git a/src/libraries/System.Diagnostics.PerformanceCounter/src/System.Diagnostics.PerformanceCounter.csproj b/src/libraries/System.Diagnostics.PerformanceCounter/src/System.Diagnostics.PerformanceCounter.csproj
index 317c566411f6d7..5ec71af7947ed9 100644
--- a/src/libraries/System.Diagnostics.PerformanceCounter/src/System.Diagnostics.PerformanceCounter.csproj
+++ b/src/libraries/System.Diagnostics.PerformanceCounter/src/System.Diagnostics.PerformanceCounter.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netstandard2.0;net461
- true
diff --git a/src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj b/src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj
index 5208f0039b8b74..7aed57a90fae84 100644
--- a/src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj
+++ b/src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj
@@ -4,7 +4,6 @@
$(DefineConstants);FLAVOR_WHIDBEY;PAPI_AD;PAPI_REGSAM;USE_CTX_CACHE
true
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netstandard2.0
- true
$(NoWarn);CA2249
diff --git a/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj b/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj
index 4eb0455b489a1c..f805636800e744 100644
--- a/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj
+++ b/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj
@@ -3,7 +3,6 @@
true
true
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-Linux;netcoreapp3.1-windows;netcoreapp3.1-OSX;netcoreapp3.1-Linux;netstandard2.0
- true
diff --git a/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj b/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj
index b7e9706b02ca56..29731cd69752f4 100644
--- a/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj
+++ b/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netstandard2.0
- true
true
enable
diff --git a/src/libraries/System.Drawing.Common/ref/System.Drawing.Common.csproj b/src/libraries/System.Drawing.Common/ref/System.Drawing.Common.csproj
index baf975fbb72b1f..5d75861c9a563b 100644
--- a/src/libraries/System.Drawing.Common/ref/System.Drawing.Common.csproj
+++ b/src/libraries/System.Drawing.Common/ref/System.Drawing.Common.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
true
enable
diff --git a/src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj b/src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
index 35425e03b14ad1..ff076314c944dd 100644
--- a/src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
+++ b/src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
@@ -6,7 +6,6 @@
$(DefineConstants);FEATURE_WINDOWS_SYSTEM_COLORS;FEATURE_SYSTEM_EVENTS
true
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1-Unix;netcoreapp3.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Formats.Asn1/src/System.Formats.Asn1.csproj b/src/libraries/System.Formats.Asn1/src/System.Formats.Asn1.csproj
index 059af38e99b740..afc44a4843a83f 100644
--- a/src/libraries/System.Formats.Asn1/src/System.Formats.Asn1.csproj
+++ b/src/libraries/System.Formats.Asn1/src/System.Formats.Asn1.csproj
@@ -3,7 +3,6 @@
true
enable
$(NetCoreAppCurrent);netstandard2.0;net461
- true
diff --git a/src/libraries/System.Formats.Cbor/ref/System.Formats.Cbor.csproj b/src/libraries/System.Formats.Cbor/ref/System.Formats.Cbor.csproj
index f2aa426354bd44..2e9b8acb3e497a 100644
--- a/src/libraries/System.Formats.Cbor/ref/System.Formats.Cbor.csproj
+++ b/src/libraries/System.Formats.Cbor/ref/System.Formats.Cbor.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);net5.0
- true
enable
diff --git a/src/libraries/System.Formats.Cbor/src/System.Formats.Cbor.csproj b/src/libraries/System.Formats.Cbor/src/System.Formats.Cbor.csproj
index 23462998e03ebd..f81c0cacfcecef 100644
--- a/src/libraries/System.Formats.Cbor/src/System.Formats.Cbor.csproj
+++ b/src/libraries/System.Formats.Cbor/src/System.Formats.Cbor.csproj
@@ -2,7 +2,6 @@
net5.0;$(NetCoreAppCurrent)
true
- true
enable
diff --git a/src/libraries/System.IO.FileSystem.AccessControl/src/System.IO.FileSystem.AccessControl.csproj b/src/libraries/System.IO.FileSystem.AccessControl/src/System.IO.FileSystem.AccessControl.csproj
index a3d152ecf94b40..fc60ae30592aaa 100644
--- a/src/libraries/System.IO.FileSystem.AccessControl/src/System.IO.FileSystem.AccessControl.csproj
+++ b/src/libraries/System.IO.FileSystem.AccessControl/src/System.IO.FileSystem.AccessControl.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent)-windows;netstandard2.0;netstandard2.0-windows;net461-windows
- true
enable
diff --git a/src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.csproj b/src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.csproj
index 507822d2232246..e51795c34c50df 100644
--- a/src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.csproj
+++ b/src/libraries/System.IO.Pipelines/ref/System.IO.Pipelines.csproj
@@ -2,9 +2,9 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
enable
-
- true
+ true
diff --git a/src/libraries/System.IO.Pipelines/src/System.IO.Pipelines.csproj b/src/libraries/System.IO.Pipelines/src/System.IO.Pipelines.csproj
index 3357c47c3b7b66..be3d6242126f58 100644
--- a/src/libraries/System.IO.Pipelines/src/System.IO.Pipelines.csproj
+++ b/src/libraries/System.IO.Pipelines/src/System.IO.Pipelines.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
true
enable
diff --git a/src/libraries/System.IO.Pipes.AccessControl/src/System.IO.Pipes.AccessControl.csproj b/src/libraries/System.IO.Pipes.AccessControl/src/System.IO.Pipes.AccessControl.csproj
index f1f4091ea1f781..adf3f0fa983a54 100644
--- a/src/libraries/System.IO.Pipes.AccessControl/src/System.IO.Pipes.AccessControl.csproj
+++ b/src/libraries/System.IO.Pipes.AccessControl/src/System.IO.Pipes.AccessControl.csproj
@@ -2,7 +2,6 @@
enable
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);net5.0-windows;net5.0;netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0-windows;netstandard2.0;net461-windows
- true
diff --git a/src/libraries/System.Management/src/System.Management.csproj b/src/libraries/System.Management/src/System.Management.csproj
index 07f592cf332b6f..e93f063795dbd6 100644
--- a/src/libraries/System.Management/src/System.Management.csproj
+++ b/src/libraries/System.Management/src/System.Management.csproj
@@ -4,7 +4,6 @@
$(NoWarn);0618
true
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netstandard2.0
- true
diff --git a/src/libraries/System.Net.Http.Json/ref/System.Net.Http.Json.csproj b/src/libraries/System.Net.Http.Json/ref/System.Net.Http.Json.csproj
index 9e23fb4e092360..1687a6caa509fd 100644
--- a/src/libraries/System.Net.Http.Json/ref/System.Net.Http.Json.csproj
+++ b/src/libraries/System.Net.Http.Json/ref/System.Net.Http.Json.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);net5.0;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Net.Http.Json/src/System.Net.Http.Json.csproj b/src/libraries/System.Net.Http.Json/src/System.Net.Http.Json.csproj
index 120c77f330d3e4..af6fa91b1c1892 100644
--- a/src/libraries/System.Net.Http.Json/src/System.Net.Http.Json.csproj
+++ b/src/libraries/System.Net.Http.Json/src/System.Net.Http.Json.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);net5.0;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Reflection.Metadata/src/System.Reflection.Metadata.csproj b/src/libraries/System.Reflection.Metadata/src/System.Reflection.Metadata.csproj
index b07bbd75ebac27..49fbcc52589b95 100644
--- a/src/libraries/System.Reflection.Metadata/src/System.Reflection.Metadata.csproj
+++ b/src/libraries/System.Reflection.Metadata/src/System.Reflection.Metadata.csproj
@@ -4,7 +4,6 @@
en-US
false
$(NetCoreAppCurrent);netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Reflection.MetadataLoadContext/src/System.Reflection.MetadataLoadContext.csproj b/src/libraries/System.Reflection.MetadataLoadContext/src/System.Reflection.MetadataLoadContext.csproj
index 2ef7aa05aedc33..ec33f379a73db5 100644
--- a/src/libraries/System.Reflection.MetadataLoadContext/src/System.Reflection.MetadataLoadContext.csproj
+++ b/src/libraries/System.Reflection.MetadataLoadContext/src/System.Reflection.MetadataLoadContext.csproj
@@ -4,7 +4,6 @@
true
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Reflection.TypeExtensions/src/System.Reflection.TypeExtensions.csproj b/src/libraries/System.Reflection.TypeExtensions/src/System.Reflection.TypeExtensions.csproj
index 8668954a3efb49..3e598d9015c00a 100644
--- a/src/libraries/System.Reflection.TypeExtensions/src/System.Reflection.TypeExtensions.csproj
+++ b/src/libraries/System.Reflection.TypeExtensions/src/System.Reflection.TypeExtensions.csproj
@@ -3,7 +3,6 @@
true
enable
$(NetCoreAppCurrent)
- true
diff --git a/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj b/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj
index 6c22cf9c866068..d742a0bf2d1dce 100644
--- a/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj
+++ b/src/libraries/System.Runtime.CompilerServices.Unsafe/src/System.Runtime.CompilerServices.Unsafe.ilproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
IMPL
OPT
diff --git a/src/libraries/System.Security.AccessControl/ref/System.Security.AccessControl.csproj b/src/libraries/System.Security.AccessControl/ref/System.Security.AccessControl.csproj
index 403a6436ed2bdd..93df430202634e 100644
--- a/src/libraries/System.Security.AccessControl/ref/System.Security.AccessControl.csproj
+++ b/src/libraries/System.Security.AccessControl/ref/System.Security.AccessControl.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Security.AccessControl/src/System.Security.AccessControl.csproj b/src/libraries/System.Security.AccessControl/src/System.Security.AccessControl.csproj
index 4f1fd6cd42513e..b3fab96c74e937 100644
--- a/src/libraries/System.Security.AccessControl/src/System.Security.AccessControl.csproj
+++ b/src/libraries/System.Security.AccessControl/src/System.Security.AccessControl.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;net461-windows;netstandard2.0-windows;netstandard2.0
- true
enable
diff --git a/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj b/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj
index 07d10f8f66edb6..c3816073efa468 100644
--- a/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj
+++ b/src/libraries/System.Security.Cryptography.Pkcs/ref/System.Security.Cryptography.Pkcs.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj b/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj
index 832bd3447c1d38..e0b6d61099c0b0 100644
--- a/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj
+++ b/src/libraries/System.Security.Cryptography.Pkcs/src/System.Security.Cryptography.Pkcs.csproj
@@ -5,7 +5,6 @@
$(NoWarn);CA5384
enable
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1;netstandard2.1-windows;netstandard2.1;netstandard2.0-windows;netstandard2.0;net461-windows
- true
diff --git a/src/libraries/System.Security.Permissions/src/System.Security.Permissions.csproj b/src/libraries/System.Security.Permissions/src/System.Security.Permissions.csproj
index 9fc55eece247cf..691bf86a923035 100644
--- a/src/libraries/System.Security.Permissions/src/System.Security.Permissions.csproj
+++ b/src/libraries/System.Security.Permissions/src/System.Security.Permissions.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent);net5.0;netcoreapp3.1;netstandard2.0;net461
- true
diff --git a/src/libraries/System.Security.Principal.Windows/ref/System.Security.Principal.Windows.csproj b/src/libraries/System.Security.Principal.Windows/ref/System.Security.Principal.Windows.csproj
index 401c7aecccd53b..9ec2638f81ef66 100644
--- a/src/libraries/System.Security.Principal.Windows/ref/System.Security.Principal.Windows.csproj
+++ b/src/libraries/System.Security.Principal.Windows/ref/System.Security.Principal.Windows.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Security.Principal.Windows/src/System.Security.Principal.Windows.csproj b/src/libraries/System.Security.Principal.Windows/src/System.Security.Principal.Windows.csproj
index 9cd81f55f9fa20..ef84fcf32d8c77 100644
--- a/src/libraries/System.Security.Principal.Windows/src/System.Security.Principal.Windows.csproj
+++ b/src/libraries/System.Security.Principal.Windows/src/System.Security.Principal.Windows.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-Unix;netcoreapp3.1-windows;netcoreapp3.1-Unix;netstandard2.0-windows;netstandard2.0-Unix;netstandard2.0;net461-windows
- true
enable
diff --git a/src/libraries/System.ServiceModel.Syndication/ref/System.ServiceModel.Syndication.csproj b/src/libraries/System.ServiceModel.Syndication/ref/System.ServiceModel.Syndication.csproj
index 67f51b77a86242..9826a5f94e9ba5 100644
--- a/src/libraries/System.ServiceModel.Syndication/ref/System.ServiceModel.Syndication.csproj
+++ b/src/libraries/System.ServiceModel.Syndication/ref/System.ServiceModel.Syndication.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
diff --git a/src/libraries/System.ServiceModel.Syndication/src/System.ServiceModel.Syndication.csproj b/src/libraries/System.ServiceModel.Syndication/src/System.ServiceModel.Syndication.csproj
index 86a03a3f7c2ec9..ecbd3de0f473c0 100644
--- a/src/libraries/System.ServiceModel.Syndication/src/System.ServiceModel.Syndication.csproj
+++ b/src/libraries/System.ServiceModel.Syndication/src/System.ServiceModel.Syndication.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461-windows
- true
true
diff --git a/src/libraries/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj b/src/libraries/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj
index 7cf866982fc86f..b2ee67b3e0039b 100644
--- a/src/libraries/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj
+++ b/src/libraries/System.ServiceProcess.ServiceController/src/System.ServiceProcess.ServiceController.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;netstandard2.0;netstandard2.0-windows;net461-windows
- true
$(NoWarn);CA2249
enable
diff --git a/src/libraries/System.Speech/src/System.Speech.csproj b/src/libraries/System.Speech/src/System.Speech.csproj
index 00b2c99d3a6a91..faee98668a30f1 100644
--- a/src/libraries/System.Speech/src/System.Speech.csproj
+++ b/src/libraries/System.Speech/src/System.Speech.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netstandard2.0
- true
$(NoWarn);CS0649;SA1129
diff --git a/src/libraries/System.Text.Encoding.CodePages/src/System.Text.Encoding.CodePages.csproj b/src/libraries/System.Text.Encoding.CodePages/src/System.Text.Encoding.CodePages.csproj
index 232b1cb17ef84a..6373ec2bf7a68e 100644
--- a/src/libraries/System.Text.Encoding.CodePages/src/System.Text.Encoding.CodePages.csproj
+++ b/src/libraries/System.Text.Encoding.CodePages/src/System.Text.Encoding.CodePages.csproj
@@ -3,7 +3,6 @@
true
enable
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netstandard2.0-windows;netstandard2.0;net461-windows
- true
true
diff --git a/src/libraries/System.Text.Encodings.Web/ref/System.Text.Encodings.Web.csproj b/src/libraries/System.Text.Encodings.Web/ref/System.Text.Encodings.Web.csproj
index 51fc45949ef508..1f72a389249355 100644
--- a/src/libraries/System.Text.Encodings.Web/ref/System.Text.Encodings.Web.csproj
+++ b/src/libraries/System.Text.Encodings.Web/ref/System.Text.Encodings.Web.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
true
$(NoWarn);CS3011
diff --git a/src/libraries/System.Text.Encodings.Web/src/System.Text.Encodings.Web.csproj b/src/libraries/System.Text.Encodings.Web/src/System.Text.Encodings.Web.csproj
index a4c22190c26287..31c8c610b4e89c 100644
--- a/src/libraries/System.Text.Encodings.Web/src/System.Text.Encodings.Web.csproj
+++ b/src/libraries/System.Text.Encodings.Web/src/System.Text.Encodings.Web.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent);$(NetCoreAppCurrent)-Browser;netcoreapp3.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Text.Json/src/System.Text.Json.csproj b/src/libraries/System.Text.Json/src/System.Text.Json.csproj
index 8a6315b1fe7c48..647cdfd440dda2 100644
--- a/src/libraries/System.Text.Json/src/System.Text.Json.csproj
+++ b/src/libraries/System.Text.Json/src/System.Text.Json.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461
- true
diff --git a/src/libraries/System.Threading.Channels/ref/System.Threading.Channels.csproj b/src/libraries/System.Threading.Channels/ref/System.Threading.Channels.csproj
index b1b6add200ce35..02b0092f908346 100644
--- a/src/libraries/System.Threading.Channels/ref/System.Threading.Channels.csproj
+++ b/src/libraries/System.Threading.Channels/ref/System.Threading.Channels.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Threading.Channels/src/System.Threading.Channels.csproj b/src/libraries/System.Threading.Channels/src/System.Threading.Channels.csproj
index 9fd61f126bfa46..54bdd1c1738686 100644
--- a/src/libraries/System.Threading.Channels/src/System.Threading.Channels.csproj
+++ b/src/libraries/System.Threading.Channels/src/System.Threading.Channels.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1;netstandard2.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Threading.Tasks.Dataflow/src/System.Threading.Tasks.Dataflow.csproj b/src/libraries/System.Threading.Tasks.Dataflow/src/System.Threading.Tasks.Dataflow.csproj
index 0625f1b876b92f..d322570ef48ec6 100644
--- a/src/libraries/System.Threading.Tasks.Dataflow/src/System.Threading.Tasks.Dataflow.csproj
+++ b/src/libraries/System.Threading.Tasks.Dataflow/src/System.Threading.Tasks.Dataflow.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netstandard2.1;netstandard2.0;net461
- true
enable
diff --git a/src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.csproj b/src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.csproj
index d04eae0963b753..080d2f34b074a4 100644
--- a/src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.csproj
+++ b/src/libraries/System.Windows.Extensions/ref/System.Windows.Extensions.csproj
@@ -1,7 +1,6 @@
$(NetCoreAppCurrent);netcoreapp3.1
- true
diff --git a/src/libraries/System.Windows.Extensions/src/System.Windows.Extensions.csproj b/src/libraries/System.Windows.Extensions/src/System.Windows.Extensions.csproj
index 916c0b133ea5b3..e995c093bb7c9a 100644
--- a/src/libraries/System.Windows.Extensions/src/System.Windows.Extensions.csproj
+++ b/src/libraries/System.Windows.Extensions/src/System.Windows.Extensions.csproj
@@ -2,7 +2,6 @@
true
$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1
- true
diff --git a/src/libraries/pkg/baseline/packageIndex.json b/src/libraries/pkg/baseline/packageIndex.json
index 33389f789205c8..bd71d21feea34d 100644
--- a/src/libraries/pkg/baseline/packageIndex.json
+++ b/src/libraries/pkg/baseline/packageIndex.json
@@ -2724,7 +2724,8 @@
"netcoreapp2.1": "4.0.3.1",
"netcoreapp3.0": "4.0.4.0",
"netcoreapp3.1": "4.0.5.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.0.0.0": "4.0.0",
@@ -3415,7 +3416,8 @@
"InboxOn": {
"netcoreapp2.1": "4.2.1.0",
"netcoreapp3.1": "4.2.2.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.2.0.0": "4.4.0",
@@ -4827,7 +4829,8 @@
},
"System.Private.Runtime.InteropServices.JavaScript": {
"InboxOn": {
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
}
},
"System.Private.Uri": {
@@ -5420,7 +5423,8 @@
"InboxOn": {
"netcoreapp3.0": "4.0.5.0",
"netcoreapp3.1": "4.0.6.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.0.3.0": "4.4.0",
@@ -5657,7 +5661,8 @@
"InboxOn": {
"netcoreapp3.0": "4.0.0.0",
"netcoreapp3.1": "4.0.1.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
}
},
"System.Runtime.Loader": {
@@ -5671,12 +5676,12 @@
"netcoreapp2.1": "4.0.3.0",
"netcoreapp3.0": "4.1.0.0",
"netcoreapp3.1": "4.1.1.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.0.0.0": "4.0.0",
- "4.0.1.0": "4.3.0",
- "4.1.0.0": "4.6.0"
+ "4.0.1.0": "4.3.0"
}
},
"System.Runtime.Numerics": {
@@ -6790,7 +6795,8 @@
"InboxOn": {
"netcoreapp3.0": "4.0.4.0",
"netcoreapp3.1": "4.0.5.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.0.0.0": "4.0.0",
@@ -6815,7 +6821,8 @@
"InboxOn": {
"netcoreapp3.0": "4.0.0.0",
"netcoreapp3.1": "4.0.1.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.0.0.0": "4.6.0",
@@ -6949,7 +6956,8 @@
"InboxOn": {
"netcoreapp3.0": "4.0.1.0",
"netcoreapp3.1": "4.0.2.0",
- "net5.0": "5.0.0.0"
+ "net5.0": "5.0.0.0",
+ "net6.0": "6.0.0.0"
},
"AssemblyVersionInPackageVersion": {
"4.0.0.0": "4.5.0",
diff --git a/src/libraries/pkg/test/props/Directory.Build.props b/src/libraries/pkg/test/Directory.Build.props
similarity index 62%
rename from src/libraries/pkg/test/props/Directory.Build.props
rename to src/libraries/pkg/test/Directory.Build.props
index 537832e4ac1b1c..5baf3287b2e1e9 100644
--- a/src/libraries/pkg/test/props/Directory.Build.props
+++ b/src/libraries/pkg/test/Directory.Build.props
@@ -1,6 +1,7 @@
- false
true
+
+
diff --git a/src/libraries/pkg/test/Directory.Build.targets b/src/libraries/pkg/test/Directory.Build.targets
new file mode 100644
index 00000000000000..31ce0ecab0ccc0
--- /dev/null
+++ b/src/libraries/pkg/test/Directory.Build.targets
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/src/libraries/pkg/test/frameworkSettings/net5.0/settings.targets b/src/libraries/pkg/test/frameworkSettings/net5.0/settings.targets
deleted file mode 100644
index bc6aa5222f1057..00000000000000
--- a/src/libraries/pkg/test/frameworkSettings/net5.0/settings.targets
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/libraries/pkg/test/frameworkSettings/net6.0/settings.targets b/src/libraries/pkg/test/frameworkSettings/net6.0/settings.targets
deleted file mode 100644
index a8fa34134f4350..00000000000000
--- a/src/libraries/pkg/test/frameworkSettings/net6.0/settings.targets
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- $(MicrosoftNETCoreAppVersion)
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/libraries/pkg/test/frameworkSettings/netcoreapp/settings.targets b/src/libraries/pkg/test/frameworkSettings/netcoreapp/settings.targets
index 6a7fbbe96d6475..f1604d74dae114 100644
--- a/src/libraries/pkg/test/frameworkSettings/netcoreapp/settings.targets
+++ b/src/libraries/pkg/test/frameworkSettings/netcoreapp/settings.targets
@@ -1,11 +1,18 @@
-
+
true
true
+
+
+
+
+
+
+
diff --git a/src/libraries/pkg/test/frameworkSettings/netcoreapp3.0/settings.targets b/src/libraries/pkg/test/frameworkSettings/netcoreapp3.0/settings.targets
deleted file mode 100644
index 1aa65488bec595..00000000000000
--- a/src/libraries/pkg/test/frameworkSettings/netcoreapp3.0/settings.targets
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/libraries/pkg/test/frameworkSettings/net/settings.targets b/src/libraries/pkg/test/frameworkSettings/netframework/settings.targets
similarity index 100%
rename from src/libraries/pkg/test/frameworkSettings/net/settings.targets
rename to src/libraries/pkg/test/frameworkSettings/netframework/settings.targets
diff --git a/src/libraries/pkg/test/frameworkSettings/netstandard/settings.targets b/src/libraries/pkg/test/frameworkSettings/netstandard/settings.targets
index e25068d3eceb1c..4a40cba07e36cd 100644
--- a/src/libraries/pkg/test/frameworkSettings/netstandard/settings.targets
+++ b/src/libraries/pkg/test/frameworkSettings/netstandard/settings.targets
@@ -1,5 +1,5 @@
-
+
true
diff --git a/src/libraries/pkg/test/packageSettings/Microsoft.XmlSerializer.Generator/net/disableNetstandardTest.targets b/src/libraries/pkg/test/packageSettings/Microsoft.XmlSerializer.Generator/netframework/disableNetstandardTest.targets
similarity index 100%
rename from src/libraries/pkg/test/packageSettings/Microsoft.XmlSerializer.Generator/net/disableNetstandardTest.targets
rename to src/libraries/pkg/test/packageSettings/Microsoft.XmlSerializer.Generator/netframework/disableNetstandardTest.targets
diff --git a/src/libraries/pkg/test/packageTest.targets b/src/libraries/pkg/test/packageTest.targets
index 29015e217fd70a..1ca80d6e15ad1a 100644
--- a/src/libraries/pkg/test/packageTest.targets
+++ b/src/libraries/pkg/test/packageTest.targets
@@ -1,14 +1,9 @@
-
- <_targetFrameworkVersionIndex>$(TargetFramework.IndexOfAny(".-0123456789"))
- <_targetFrameworkIdentifier Condition="'$(_runtimeOSVersionIndex)' != '-1'">$(TargetFramework.SubString(0, $(_targetFrameworkVersionIndex)))
-
- <_targetFrameworkIdentifier Condition="'$(_targetFrameworkIdentifier)' == 'net' and !$(TargetFramework.StartsWith('net4'))">netcoreapp
+
+ <_targetFrameworkIdentifier>$(TargetFrameworkIdentifier.Substring(1).ToLower())
- $(MSBuildThisFileDirectory)tools\
-
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json;
https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json;
@@ -19,15 +14,21 @@
true
+
+ true
-
-
-
+
+
+
+
-
-
+
+
@@ -80,14 +81,24 @@
+
+
+
+
+
<_referenceCopyLocalPathsPackages Include="@(ReferenceCopyLocalPaths->'%(NuGetPackageId)')"
- Condition="'%(ReferenceCopyLocalPaths.RuntimeIdentifier)' == ''"
- Exclude="@(ReferencePath->'%(NuGetPackageId)');$(TestPackageId)" />
+ Condition="'%(ReferenceCopyLocalPaths.RuntimeIdentifier)' == ''"
+ Exclude="@(ReferencePath->'%(NuGetPackageId)');$(TestPackageId)" />
@@ -136,7 +147,8 @@
+ Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and
+ '$(DisableVerifyNotDependsOnNetStandardTest)' != 'true'">
diff --git a/src/libraries/pkg/test/project.csproj.template b/src/libraries/pkg/test/project.csproj.template
index eb0b959b521e6f..ef6b193e0cc5a5 100644
--- a/src/libraries/pkg/test/project.csproj.template
+++ b/src/libraries/pkg/test/project.csproj.template
@@ -1,21 +1,28 @@
-
+
+
+ $(SupportFilesDir)Directory.Build.props
+ $(SupportFilesDir)Directory.Build.targets
+
+
+
- {TFMs}
+ {TargetFrameworks}
{PackageId}
- {PackageVersion}
+
+
+ {NetCoreAppCurrentVersion}
+ {NetCoreAppCurrent}
+ {MicrosoftNetCoreAppFrameworkName}
+
false
- 99.0
-
-
- true
- $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\support
+ $(NetCoreAppCurrentVersion)
-
+
diff --git a/src/libraries/pkg/test/test.msbuild b/src/libraries/pkg/test/test.msbuild
index e7ad573abf4dff..6a3c2cd0f9fef7 100644
--- a/src/libraries/pkg/test/test.msbuild
+++ b/src/libraries/pkg/test/test.msbuild
@@ -5,7 +5,7 @@
$(MSBuildThisFileDirectory)..\projects
- <_projectProperties>SupportFilesDir=$(MSBuildThisFileDirectory)
+ <_projectProperties>SupportFilesDir=$(MSBuildThisFileDirectory);MicrosoftNetCoreAppRefPackDir=$(MicrosoftNetCoreAppRefPackDir)
$(MSBuildThisFileDirectory)\packages
diff --git a/src/libraries/pkg/test/testPackages.proj b/src/libraries/pkg/test/testPackages.proj
index 2e3823c6067e57..455dfb67508dd9 100644
--- a/src/libraries/pkg/test/testPackages.proj
+++ b/src/libraries/pkg/test/testPackages.proj
@@ -1,5 +1,5 @@
-
+
[a-zA-z\.]*\.
@@ -19,7 +19,7 @@
-
+
@@ -29,12 +29,11 @@
- $(ArtifactsBinDir)testPkg/
- $(TestDir)support/
+ $(ArtifactsBinDir)testPkg\
+ $(TestDir)support\
test.msbuild
$(TestSupportDir)$(TestProjectName)
- $(TestSupportDir)tools/
- $(TestDir)projects/
+ $(TestDir)projects\
$(ArtifactsBinDir)testPackages
$(DotNetRoot)dotnet
@@ -42,24 +41,25 @@
-
- $(TestToolsDir)
-
-
- $(TestToolsDir)eng/
-
-
- $(TestToolsDir)%(RecursiveDir)
-
-
- $(TestDir)
-
-
- $(TestSupportDir)%(RecursiveDir)
-
-
- $(TestSupportDir)
-
+
+
+
+
+
+
+
+
@@ -69,10 +69,10 @@
-
-
+ Inputs="@(TestSupportFile)"
+ Outputs="@(TestSupportFile->'%(DestinationFolder)\%(FileName)%(Extension)')">
+
+
@@ -123,7 +123,7 @@
@@ -167,6 +167,7 @@
$(TestRestoreCommand) restore
$(TestRestoreCommand) --packages "$(TestPackageDir)"
$(TestRestoreCommand) /p:LocalPackagesPath=$(ArtifactsPackagesDir)
+ $(TestRestoreCommand) /p:MicrosoftNetCoreAppRefPackDir=$(MicrosoftNetCoreAppRefPackDir)
$(TestRestoreCommand) /nr:false
$(TestRestoreCommand) /warnaserror
$(TestRestoreCommand) /p:PackagesToTest=$(PackagesToTest)
@@ -186,6 +187,7 @@
$(TestBuildCommand) /t:Test
$(TestBuildCommand) /nr:false
$(TestBuildCommand) /warnaserror
+ $(TestBuildCommand) /p:MicrosoftNetCoreAppRefPackDir=$(MicrosoftNetCoreAppRefPackDir)
$(TestBuildCommand) /p:PackagesToTest=$(PackagesToTest)
@@ -199,5 +201,5 @@
-
+
diff --git a/src/libraries/sendtohelixhelp.proj b/src/libraries/sendtohelixhelp.proj
index 297ef5db68bbe6..93bd404c0b3479 100644
--- a/src/libraries/sendtohelixhelp.proj
+++ b/src/libraries/sendtohelixhelp.proj
@@ -76,6 +76,9 @@
+
+
+
@@ -83,7 +86,8 @@
$(HelixCommand) /bl:%HELIX_WORKITEM_UPLOAD_ROOT%\%HELIX_WORKITEM_FRIENDLYNAME%.package.test.binlog
$(HelixCommand) /warnaserror
$(HelixCommand) /p:PackageTestProjectsDir=%HELIX_WORKITEM_PAYLOAD%
- $(HelixCommand) /p:LocalPackagesPath="%HELIX_CORRELATION_PAYLOAD%\packages\"
+ $(HelixCommand) /p:LocalPackagesPath=%HELIX_CORRELATION_PAYLOAD%\packages\
+ $(HelixCommand) /p:MicrosoftNetCoreAppRefPackDir=%HELIX_CORRELATION_PAYLOAD%\targetingpack\