From: Viktor Hofer Date: Tue, 15 Jun 2021 14:40:46 +0000 (+0200) Subject: Add NetCoreAppCurrent config to where it's missing (#54215) X-Git-Tag: submit/tizen/20210909.063632~764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b90631f64809a77beb7a6aef787f0254956d522b;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add NetCoreAppCurrent config to where it's missing (#54215) * Add NetCoreAppCurrent config to where it's missing This is addressing the following scenarios in order: - When there is a netcoreapp3.1 or net5.0 asset available in the lib, also add a NetCoreAppCurrent configuration to avoid PackageReferences to libraries that are inbox in net6.0 but not in previous .NetCoreApp versions. Examples are M.Win32.Registry which will be inbox soon. - When there's a NetCoreAppCurrent config in the lib but not in the ref, add it there as well to always resolve the ref of the current version. - When there are NetCoreAppCurrent rid specific configuration in the lib not a non-rid configuration, add one so that P2Ps from rid-less NetCoreAppCurrent configs in other projects, pick the NetCoreAppCurrent config from the lib and the ref. --- diff --git a/src/libraries/Microsoft.Extensions.Logging.Console/ref/Microsoft.Extensions.Logging.Console.csproj b/src/libraries/Microsoft.Extensions.Logging.Console/ref/Microsoft.Extensions.Logging.Console.csproj index 844061a..765b787 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Console/ref/Microsoft.Extensions.Logging.Console.csproj +++ b/src/libraries/Microsoft.Extensions.Logging.Console/ref/Microsoft.Extensions.Logging.Console.csproj @@ -1,6 +1,6 @@ - netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461 true @@ -8,7 +8,7 @@ - + @@ -21,6 +21,11 @@ + + + + + diff --git a/src/libraries/Microsoft.Extensions.Logging.EventSource/ref/Microsoft.Extensions.Logging.EventSource.csproj b/src/libraries/Microsoft.Extensions.Logging.EventSource/ref/Microsoft.Extensions.Logging.EventSource.csproj index 80dba55..99dea9f 100644 --- a/src/libraries/Microsoft.Extensions.Logging.EventSource/ref/Microsoft.Extensions.Logging.EventSource.csproj +++ b/src/libraries/Microsoft.Extensions.Logging.EventSource/ref/Microsoft.Extensions.Logging.EventSource.csproj @@ -1,17 +1,26 @@ - netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461 + + + + + + + + + diff --git a/src/libraries/Microsoft.Extensions.Primitives/ref/Microsoft.Extensions.Primitives.csproj b/src/libraries/Microsoft.Extensions.Primitives/ref/Microsoft.Extensions.Primitives.csproj index e349c19..e6f4529 100644 --- a/src/libraries/Microsoft.Extensions.Primitives/ref/Microsoft.Extensions.Primitives.csproj +++ b/src/libraries/Microsoft.Extensions.Primitives/ref/Microsoft.Extensions.Primitives.csproj @@ -1,15 +1,18 @@ - netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461 - - - + + + + + + diff --git a/src/libraries/Microsoft.Win32.SystemEvents/ref/Microsoft.Win32.SystemEvents.csproj b/src/libraries/Microsoft.Win32.SystemEvents/ref/Microsoft.Win32.SystemEvents.csproj index 176e30b..60b298c 100644 --- a/src/libraries/Microsoft.Win32.SystemEvents/ref/Microsoft.Win32.SystemEvents.csproj +++ b/src/libraries/Microsoft.Win32.SystemEvents/ref/Microsoft.Win32.SystemEvents.csproj @@ -1,12 +1,15 @@ - netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461 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 97d46a0..2929b90 100644 --- a/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj +++ b/src/libraries/Microsoft.Win32.SystemEvents/src/Microsoft.Win32.SystemEvents.csproj @@ -2,7 +2,7 @@ true enable - $(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0;net461 diff --git a/src/libraries/System.Data.Odbc/ref/System.Data.Odbc.csproj b/src/libraries/System.Data.Odbc/ref/System.Data.Odbc.csproj index 9b14848..3f557d7 100644 --- a/src/libraries/System.Data.Odbc/ref/System.Data.Odbc.csproj +++ b/src/libraries/System.Data.Odbc/ref/System.Data.Odbc.csproj @@ -1,12 +1,15 @@ - netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461 enable + + + diff --git a/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.csproj b/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.csproj index 8ff0187..11c1733 100644 --- a/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.csproj +++ b/src/libraries/System.Diagnostics.DiagnosticSource/ref/System.Diagnostics.DiagnosticSource.csproj @@ -1,6 +1,6 @@ - net5.0;netstandard2.0;net461 + $(NetCoreAppCurrent);net5.0;netstandard2.0;net461 false enable @@ -14,6 +14,9 @@ + + + diff --git a/src/libraries/System.DirectoryServices.AccountManagement/ref/System.DirectoryServices.AccountManagement.csproj b/src/libraries/System.DirectoryServices.AccountManagement/ref/System.DirectoryServices.AccountManagement.csproj index ae77b54..ec5bbcc 100644 --- a/src/libraries/System.DirectoryServices.AccountManagement/ref/System.DirectoryServices.AccountManagement.csproj +++ b/src/libraries/System.DirectoryServices.AccountManagement/ref/System.DirectoryServices.AccountManagement.csproj @@ -1,6 +1,6 @@ - netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0 @@ -8,6 +8,10 @@ + + + + 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 cf546dc..ddc9763 100644 --- a/src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj +++ b/src/libraries/System.DirectoryServices.AccountManagement/src/System.DirectoryServices.AccountManagement.csproj @@ -3,7 +3,7 @@ true $(DefineConstants);FLAVOR_WHIDBEY;PAPI_AD;PAPI_REGSAM;USE_CTX_CACHE true - $(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0 $(NoWarn);CA2249 diff --git a/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.csproj b/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.csproj index f63b71f..f7c8830 100644 --- a/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.csproj +++ b/src/libraries/System.DirectoryServices.Protocols/ref/System.DirectoryServices.Protocols.csproj @@ -1,6 +1,6 @@ - netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0 @@ -8,6 +8,10 @@ + + + + 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 5a581ce..d3ee9ba 100644 --- a/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj +++ b/src/libraries/System.DirectoryServices.Protocols/src/System.DirectoryServices.Protocols.csproj @@ -2,7 +2,7 @@ true true - $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-Linux;netcoreapp3.1-windows;netcoreapp3.1-OSX;netcoreapp3.1-Linux;netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-Linux;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1-OSX;netcoreapp3.1-Linux;netcoreapp3.1;netstandard2.0 diff --git a/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.cs b/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.cs index 9ca1248..9d1eb9f 100644 --- a/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.cs +++ b/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.cs @@ -707,9 +707,9 @@ namespace System.DirectoryServices.ActiveDirectory public int IndexOf(System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass schemaClass) { throw null; } public void Insert(int index, System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass schemaClass) { } protected override void OnClearComplete() { } - protected override void OnInsertComplete(int index, object value) { } - protected override void OnRemoveComplete(int index, object value) { } - protected override void OnSetComplete(int index, object oldValue, object newValue) { } + protected override void OnInsertComplete(int index, object? value) { } + protected override void OnRemoveComplete(int index, object? value) { } + protected override void OnSetComplete(int index, object? oldValue, object? newValue) { } protected override void OnValidate(object value) { } public void Remove(System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaClass schemaClass) { } } @@ -754,9 +754,9 @@ namespace System.DirectoryServices.ActiveDirectory public int IndexOf(System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty schemaProperty) { throw null; } public void Insert(int index, System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty schemaProperty) { } protected override void OnClearComplete() { } - protected override void OnInsertComplete(int index, object value) { } - protected override void OnRemoveComplete(int index, object value) { } - protected override void OnSetComplete(int index, object oldValue, object newValue) { } + protected override void OnInsertComplete(int index, object? value) { } + protected override void OnRemoveComplete(int index, object? value) { } + protected override void OnSetComplete(int index, object? oldValue, object? newValue) { } protected override void OnValidate(object value) { } public void Remove(System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty schemaProperty) { } } @@ -811,9 +811,9 @@ namespace System.DirectoryServices.ActiveDirectory public int IndexOf(System.DirectoryServices.ActiveDirectory.ActiveDirectorySite site) { throw null; } public void Insert(int index, System.DirectoryServices.ActiveDirectory.ActiveDirectorySite site) { } protected override void OnClearComplete() { } - protected override void OnInsertComplete(int index, object value) { } - protected override void OnRemoveComplete(int index, object value) { } - protected override void OnSetComplete(int index, object oldValue, object newValue) { } + protected override void OnInsertComplete(int index, object? value) { } + protected override void OnRemoveComplete(int index, object? value) { } + protected override void OnSetComplete(int index, object? oldValue, object? newValue) { } protected override void OnValidate(object value) { } public void Remove(System.DirectoryServices.ActiveDirectory.ActiveDirectorySite site) { } } @@ -868,9 +868,9 @@ namespace System.DirectoryServices.ActiveDirectory public int IndexOf(System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink link) { throw null; } public void Insert(int index, System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink link) { } protected override void OnClearComplete() { } - protected override void OnInsertComplete(int index, object value) { } - protected override void OnRemoveComplete(int index, object value) { } - protected override void OnSetComplete(int index, object oldValue, object newValue) { } + protected override void OnInsertComplete(int index, object? value) { } + protected override void OnRemoveComplete(int index, object? value) { } + protected override void OnSetComplete(int index, object? oldValue, object? newValue) { } protected override void OnValidate(object value) { } public void Remove(System.DirectoryServices.ActiveDirectory.ActiveDirectorySiteLink link) { } } @@ -918,9 +918,9 @@ namespace System.DirectoryServices.ActiveDirectory public void Insert(int index, System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet subnet) { } protected override void OnClear() { } protected override void OnClearComplete() { } - protected override void OnInsertComplete(int index, object value) { } - protected override void OnRemoveComplete(int index, object value) { } - protected override void OnSetComplete(int index, object oldValue, object newValue) { } + protected override void OnInsertComplete(int index, object? value) { } + protected override void OnRemoveComplete(int index, object? value) { } + protected override void OnSetComplete(int index, object? oldValue, object? newValue) { } protected override void OnValidate(object value) { } public void Remove(System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnet subnet) { } } @@ -1138,9 +1138,9 @@ namespace System.DirectoryServices.ActiveDirectory public void Insert(int index, System.DirectoryServices.ActiveDirectory.DirectoryServer server) { } protected override void OnClear() { } protected override void OnClearComplete() { } - protected override void OnInsertComplete(int index, object value) { } - protected override void OnRemoveComplete(int index, object value) { } - protected override void OnSetComplete(int index, object oldValue, object newValue) { } + protected override void OnInsertComplete(int index, object? value) { } + protected override void OnRemoveComplete(int index, object? value) { } + protected override void OnSetComplete(int index, object? oldValue, object? newValue) { } protected override void OnValidate(object value) { } public void Remove(System.DirectoryServices.ActiveDirectory.DirectoryServer server) { } } diff --git a/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.csproj b/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.csproj index 05cc27b..730a34a 100644 --- a/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.csproj +++ b/src/libraries/System.DirectoryServices/ref/System.DirectoryServices.csproj @@ -1,6 +1,6 @@ - netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0 true enable diff --git a/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj b/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj index fded0bd..cc86d1c 100644 --- a/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj +++ b/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj @@ -1,7 +1,7 @@ true - $(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0 true enable diff --git a/src/libraries/System.IO.Hashing/src/System.IO.Hashing.csproj b/src/libraries/System.IO.Hashing/src/System.IO.Hashing.csproj index d425770..3ef2ef3 100644 --- a/src/libraries/System.IO.Hashing/src/System.IO.Hashing.csproj +++ b/src/libraries/System.IO.Hashing/src/System.IO.Hashing.csproj @@ -2,7 +2,7 @@ true enable - net6.0;netstandard2.0;net461 + $(NetCoreAppCurrent);netstandard2.0;net461 true false diff --git a/src/libraries/System.Reflection.MetadataLoadContext/ref/System.Reflection.MetadataLoadContext.csproj b/src/libraries/System.Reflection.MetadataLoadContext/ref/System.Reflection.MetadataLoadContext.csproj index e13d016..fe4145d 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/ref/System.Reflection.MetadataLoadContext.csproj +++ b/src/libraries/System.Reflection.MetadataLoadContext/ref/System.Reflection.MetadataLoadContext.csproj @@ -1,11 +1,14 @@ - netcoreapp3.1;netstandard2.0;net461 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0;net461 enable + + + diff --git a/src/libraries/System.Runtime.Caching/Directory.Build.props b/src/libraries/System.Runtime.Caching/Directory.Build.props index 826e310..7494944 100644 --- a/src/libraries/System.Runtime.Caching/Directory.Build.props +++ b/src/libraries/System.Runtime.Caching/Directory.Build.props @@ -6,6 +6,7 @@ to a different assembly. --> 4.0.0.0 Microsoft + true Provides classes to use caching facilities. Commonly Used Types: diff --git a/src/libraries/System.Runtime.Caching/ref/System.Runtime.Caching.csproj b/src/libraries/System.Runtime.Caching/ref/System.Runtime.Caching.csproj index 2083b82..2823f20 100644 --- a/src/libraries/System.Runtime.Caching/ref/System.Runtime.Caching.csproj +++ b/src/libraries/System.Runtime.Caching/ref/System.Runtime.Caching.csproj @@ -6,9 +6,8 @@ - - + diff --git a/src/libraries/System.Runtime.Caching/src/System.Runtime.Caching.csproj b/src/libraries/System.Runtime.Caching/src/System.Runtime.Caching.csproj index f9977c0..e2a0ebd 100644 --- a/src/libraries/System.Runtime.Caching/src/System.Runtime.Caching.csproj +++ b/src/libraries/System.Runtime.Caching/src/System.Runtime.Caching.csproj @@ -2,7 +2,6 @@ true $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0-windows;netstandard2.0 - true diff --git a/src/libraries/System.Speech/ref/System.Speech.csproj b/src/libraries/System.Speech/ref/System.Speech.csproj index 9a8f2b4..47a37eb 100644 --- a/src/libraries/System.Speech/ref/System.Speech.csproj +++ b/src/libraries/System.Speech/ref/System.Speech.csproj @@ -1,10 +1,14 @@ - netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent);netcoreapp3.1;netstandard2.0 + + + + diff --git a/src/libraries/System.Speech/src/System.Speech.csproj b/src/libraries/System.Speech/src/System.Speech.csproj index 04079d1..9a8fe62 100644 --- a/src/libraries/System.Speech/src/System.Speech.csproj +++ b/src/libraries/System.Speech/src/System.Speech.csproj @@ -1,7 +1,7 @@  true - $(NetCoreAppCurrent)-windows;netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0 + $(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent);netcoreapp3.1-windows;netcoreapp3.1;netstandard2.0 $(NoWarn);CS0649;SA1129