diff --git a/Directory.Build.targets b/Directory.Build.targets index 1161d409dec1ab..bc5b847efc614c 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -97,18 +97,10 @@ - - - $(IsReferenceAssemblyProject) - - - - - diff --git a/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.cs b/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.cs deleted file mode 100644 index de2281e32b59a3..00000000000000 --- a/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.cs +++ /dev/null @@ -1,96 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace System -{ - public partial interface IAsyncDisposable - { - System.Threading.Tasks.ValueTask DisposeAsync(); - } -} -namespace System.Collections.Generic -{ - public partial interface IAsyncEnumerable - { - System.Collections.Generic.IAsyncEnumerator GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - } - public partial interface IAsyncEnumerator : System.IAsyncDisposable - { - T Current { get; } - System.Threading.Tasks.ValueTask MoveNextAsync(); - } -} -namespace System.Runtime.CompilerServices -{ - public partial struct AsyncIteratorMethodBuilder - { - private object _dummy; - private int _dummyPrimitive; - public void AwaitOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } - public void AwaitUnsafeOnCompleted(ref TAwaiter awaiter, ref TStateMachine stateMachine) where TAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } - public void Complete() { } - public static System.Runtime.CompilerServices.AsyncIteratorMethodBuilder Create() { throw null; } - public void MoveNext(ref TStateMachine stateMachine) where TStateMachine : System.Runtime.CompilerServices.IAsyncStateMachine { } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Method, Inherited=false, AllowMultiple=false)] - public sealed partial class AsyncIteratorStateMachineAttribute : System.Runtime.CompilerServices.StateMachineAttribute - { - public AsyncIteratorStateMachineAttribute(System.Type stateMachineType) : base (default(System.Type)) { } - } - public readonly partial struct ConfiguredAsyncDisposable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } - } - public readonly partial struct ConfiguredCancelableAsyncEnumerable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable ConfigureAwait(bool continueOnCapturedContext) { throw null; } - public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable.Enumerator GetAsyncEnumerator() { throw null; } - public System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable WithCancellation(System.Threading.CancellationToken cancellationToken) { throw null; } - public readonly partial struct Enumerator - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public T Current { get { throw null; } } - public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable DisposeAsync() { throw null; } - public System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable MoveNextAsync() { throw null; } - } - } - [System.AttributeUsageAttribute(System.AttributeTargets.Parameter, Inherited=false)] - public sealed partial class EnumeratorCancellationAttribute : System.Attribute - { - public EnumeratorCancellationAttribute() { } - } -} -namespace System.Threading.Tasks -{ - public static partial class TaskAsyncEnumerableExtensions - { - public static System.Runtime.CompilerServices.ConfiguredAsyncDisposable ConfigureAwait(this System.IAsyncDisposable source, bool continueOnCapturedContext) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable ConfigureAwait(this System.Collections.Generic.IAsyncEnumerable source, bool continueOnCapturedContext) { throw null; } - public static System.Runtime.CompilerServices.ConfiguredCancelableAsyncEnumerable WithCancellation(this System.Collections.Generic.IAsyncEnumerable source, System.Threading.CancellationToken cancellationToken) { throw null; } - } -} -namespace System.Threading.Tasks.Sources -{ - public partial struct ManualResetValueTaskSourceCore - { - private TResult _result; - private object _dummy; - private int _dummyPrimitive; - public bool RunContinuationsAsynchronously { readonly get { throw null; } set { } } - public short Version { get { throw null; } } - public TResult GetResult(short token) { throw null; } - public System.Threading.Tasks.Sources.ValueTaskSourceStatus GetStatus(short token) { throw null; } - public void OnCompleted(System.Action continuation, object? state, short token, System.Threading.Tasks.Sources.ValueTaskSourceOnCompletedFlags flags) { } - public void Reset() { } - public void SetException(System.Exception error) { } - public void SetResult(TResult result) { } - } -} diff --git a/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.csproj b/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.csproj deleted file mode 100644 index b7bbceaa14bbbd..00000000000000 --- a/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - netstandard2.0;$(NetFrameworkMinimum);netstandard2.1 - - - - - - - - - - - diff --git a/src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.Forwards.cs b/src/libraries/Microsoft.Bcl.AsyncInterfaces/src/Microsoft.Bcl.AsyncInterfaces.Forwards.cs similarity index 100% rename from src/libraries/Microsoft.Bcl.AsyncInterfaces/ref/Microsoft.Bcl.AsyncInterfaces.Forwards.cs rename to src/libraries/Microsoft.Bcl.AsyncInterfaces/src/Microsoft.Bcl.AsyncInterfaces.Forwards.cs diff --git a/src/libraries/Microsoft.Bcl.AsyncInterfaces/src/Microsoft.Bcl.AsyncInterfaces.csproj b/src/libraries/Microsoft.Bcl.AsyncInterfaces/src/Microsoft.Bcl.AsyncInterfaces.csproj index 6f2caa4faa2fdd..c97e58d75a4483 100644 --- a/src/libraries/Microsoft.Bcl.AsyncInterfaces/src/Microsoft.Bcl.AsyncInterfaces.csproj +++ b/src/libraries/Microsoft.Bcl.AsyncInterfaces/src/Microsoft.Bcl.AsyncInterfaces.csproj @@ -2,54 +2,37 @@ netstandard2.0;$(NetFrameworkMinimum);netstandard2.1 - false true - Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0. - -Commonly Used Types: -System.IAsyncDisposable -System.Collections.Generic.IAsyncEnumerable -System.Collections.Generic.IAsyncEnumerator + Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0. - - - true - + + + + + + - - - - - System.Private.CoreLib\System\Collections\Generic\IAsyncEnumerable.cs - - - System.Private.CoreLib\System\Collections\Generic\IAsyncEnumerator.cs - - - System.Private.CoreLib\System\IAsyncDisposable.cs - - - System.Private.CoreLib\System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs - - - System.Private.CoreLib\System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs - - - System.Private.CoreLib\System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs - - - System.Private.CoreLib\System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs - - - System.Private.CoreLib\System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs - + + + + - + + + + + + + + + - - - + + + + + diff --git a/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.cs b/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.cs deleted file mode 100644 index e13db0f1f5e4ec..00000000000000 --- a/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -#if NETFRAMEWORK || NETSTANDARD -namespace System.Security.Cryptography -{ - public sealed partial class SP800108HmacCounterKdf : System.IDisposable - { - public SP800108HmacCounterKdf(byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { } - public SP800108HmacCounterKdf(System.ReadOnlySpan key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { } - public static byte[] DeriveBytes(byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] label, byte[] context, int derivedKeyLengthInBytes) { throw null; } - public static byte[] DeriveBytes(byte[] key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, string label, string context, int derivedKeyLengthInBytes) { throw null; } - public static byte[] DeriveBytes(System.ReadOnlySpan key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.ReadOnlySpan label, System.ReadOnlySpan context, int derivedKeyLengthInBytes) { throw null; } - public static void DeriveBytes(System.ReadOnlySpan key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.ReadOnlySpan label, System.ReadOnlySpan context, System.Span destination) { } - public static byte[] DeriveBytes(System.ReadOnlySpan key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.ReadOnlySpan label, System.ReadOnlySpan context, int derivedKeyLengthInBytes) { throw null; } - public static void DeriveBytes(System.ReadOnlySpan key, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.ReadOnlySpan label, System.ReadOnlySpan context, System.Span destination) { } - public byte[] DeriveKey(byte[] label, byte[] context, int derivedKeyLengthInBytes) { throw null; } - public byte[] DeriveKey(System.ReadOnlySpan label, System.ReadOnlySpan context, int derivedKeyLengthInBytes) { throw null; } - public void DeriveKey(System.ReadOnlySpan label, System.ReadOnlySpan context, System.Span destination) { } - public byte[] DeriveKey(System.ReadOnlySpan label, System.ReadOnlySpan context, int derivedKeyLengthInBytes) { throw null; } - public void DeriveKey(System.ReadOnlySpan label, System.ReadOnlySpan context, System.Span destination) { } - public byte[] DeriveKey(string label, string context, int derivedKeyLengthInBytes) { throw null; } - public void Dispose() { } - } -} -#endif -#if NETFRAMEWORK || NETSTANDARD || NET8_0 -namespace System.Security.Cryptography.X509Certificates -{ - public sealed partial class Pkcs12LoaderLimits - { - public Pkcs12LoaderLimits() { } - public Pkcs12LoaderLimits(System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits copyFrom) { } - public static System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits DangerousNoLimits { get { throw null; } } - public static System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits Defaults { get { throw null; } } - public bool IgnoreEncryptedAuthSafes { get { throw null; } set { } } - public bool IgnorePrivateKeys { get { throw null; } set { } } - public int? IndividualKdfIterationLimit { get { throw null; } set { } } - public bool IsReadOnly { get { throw null; } } - public int? MacIterationLimit { get { throw null; } set { } } - public int? MaxCertificates { get { throw null; } set { } } - public int? MaxKeys { get { throw null; } set { } } - public bool PreserveCertificateAlias { get { throw null; } set { } } - public bool PreserveKeyName { get { throw null; } set { } } - public bool PreserveStorageProvider { get { throw null; } set { } } - public bool PreserveUnknownAttributes { get { throw null; } set { } } - public int? TotalKdfIterationLimit { get { throw null; } set { } } - public void MakeReadOnly() { } - } - public sealed partial class Pkcs12LoadLimitExceededException : System.Security.Cryptography.CryptographicException - { - public Pkcs12LoadLimitExceededException(string propertyName) { } - } -#if NET - [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] -#endif - public static partial class X509CertificateLoader - { - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadCertificate(byte[] data) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadCertificate(System.ReadOnlySpan data) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadCertificateFromFile(string path) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadPkcs12(byte[] data, string? password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadPkcs12(System.ReadOnlySpan data, System.ReadOnlySpan password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2Collection LoadPkcs12Collection(byte[] data, string? password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2Collection LoadPkcs12Collection(System.ReadOnlySpan data, System.ReadOnlySpan password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2Collection LoadPkcs12CollectionFromFile(string path, System.ReadOnlySpan password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2Collection LoadPkcs12CollectionFromFile(string path, string? password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadPkcs12FromFile(string path, System.ReadOnlySpan password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadPkcs12FromFile(string path, string? password, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags keyStorageFlags = System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet, System.Security.Cryptography.X509Certificates.Pkcs12LoaderLimits? loaderLimits = null) { throw null; } - } -} -#endif diff --git a/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.csproj b/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.csproj deleted file mode 100644 index d6c00334523640..00000000000000 --- a/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - netstandard2.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum);$(NetCoreAppCurrent) - - - - - - - - - - - - diff --git a/src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.Forwards.cs b/src/libraries/Microsoft.Bcl.Cryptography/src/Microsoft.Bcl.Cryptography.Forwards.cs similarity index 100% rename from src/libraries/Microsoft.Bcl.Cryptography/ref/Microsoft.Bcl.Cryptography.Forwards.cs rename to src/libraries/Microsoft.Bcl.Cryptography/src/Microsoft.Bcl.Cryptography.Forwards.cs diff --git a/src/libraries/Microsoft.Bcl.Cryptography/src/Microsoft.Bcl.Cryptography.csproj b/src/libraries/Microsoft.Bcl.Cryptography/src/Microsoft.Bcl.Cryptography.csproj index 88c60b8f42ede1..d5862e1ef5cd0c 100644 --- a/src/libraries/Microsoft.Bcl.Cryptography/src/Microsoft.Bcl.Cryptography.csproj +++ b/src/libraries/Microsoft.Bcl.Cryptography/src/Microsoft.Bcl.Cryptography.csproj @@ -3,33 +3,26 @@ netstandard2.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum);$(NetCoreAppCurrent) true - false true - Provides support for some cryptographic primitives for .NET Framework and .NET Standard. - -Commonly Used Types: -System.Security.Cryptography.SP800108HmacCounterKdf + Provides support for some cryptographic primitives for .NET Framework and .NET Standard. - true true - true - false - true + true + true - - + + - + Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml.cs Common\System\Security\Cryptography\Asn1\Pkcs7\EncryptedDataAsn.xml + + Link="Common\System\Security\Cryptography\X509Certificates\X509CertificateLoader.cs" /> + - + Link="Common\Microsoft\Win32\SafeHandles\SafeHandleCache.cs" /> + @@ -286,16 +284,17 @@ System.Security.Cryptography.SP800108HmacCounterKdf - + - + + diff --git a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.Forwards.cs b/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.Forwards.cs deleted file mode 100644 index c732dbfb671a8f..00000000000000 --- a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.Forwards.cs +++ /dev/null @@ -1,4 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.Text.Base64Url))] diff --git a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.cs b/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.cs deleted file mode 100644 index 5ec52cbbe15d92..00000000000000 --- a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace System.Buffers.Text -{ - public static class Base64Url - { - public static byte[] DecodeFromChars(System.ReadOnlySpan source) { throw null; } - public static int DecodeFromChars(System.ReadOnlySpan source, System.Span destination) { throw null; } - public static System.Buffers.OperationStatus DecodeFromChars(System.ReadOnlySpan source, System.Span destination, out int charsConsumed, out int bytesWritten, bool isFinalBlock = true) { throw null; } - public static byte[] DecodeFromUtf8(System.ReadOnlySpan source) { throw null; } - public static int DecodeFromUtf8(System.ReadOnlySpan source, System.Span destination) { throw null; } - public static System.Buffers.OperationStatus DecodeFromUtf8(System.ReadOnlySpan source, System.Span destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) { throw null; } - public static int DecodeFromUtf8InPlace(System.Span buffer) { throw null; } - public static char[] EncodeToChars(System.ReadOnlySpan source) { throw null; } - public static int EncodeToChars(System.ReadOnlySpan source, System.Span destination) { throw null; } - public static System.Buffers.OperationStatus EncodeToChars(System.ReadOnlySpan source, System.Span destination, out int bytesConsumed, out int charsWritten, bool isFinalBlock = true) { throw null; } - public static string EncodeToString(System.ReadOnlySpan source) { throw null; } - public static byte[] EncodeToUtf8(System.ReadOnlySpan source) { throw null; } - public static int EncodeToUtf8(System.ReadOnlySpan source, System.Span destination) { throw null; } - public static System.Buffers.OperationStatus EncodeToUtf8(System.ReadOnlySpan source, System.Span destination, out int bytesConsumed, out int bytesWritten, bool isFinalBlock = true) { throw null; } - public static int GetEncodedLength(int bytesLength) { throw null; } - public static int GetMaxDecodedLength(int base64Length) { throw null; } - public static bool IsValid(System.ReadOnlySpan base64UrlText) { throw null; } - public static bool IsValid(System.ReadOnlySpan base64UrlText, out int decodedLength) { throw null; } - public static bool IsValid(System.ReadOnlySpan utf8Base64UrlText) { throw null; } - public static bool IsValid(System.ReadOnlySpan utf8Base64UrlText, out int decodedLength) { throw null; } - public static bool TryDecodeFromChars(System.ReadOnlySpan source, System.Span destination, out int bytesWritten) { throw null; } - public static bool TryDecodeFromUtf8(System.ReadOnlySpan source, System.Span destination, out int bytesWritten) { throw null; } - public static bool TryEncodeToChars(System.ReadOnlySpan source, System.Span destination, out int charsWritten) { throw null; } - public static bool TryEncodeToUtf8(System.ReadOnlySpan source, System.Span destination, out int bytesWritten) { throw null; } - public static bool TryEncodeToUtf8InPlace(System.Span buffer, int dataLength, out int bytesWritten) { throw null; } - } -} diff --git a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.csproj b/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.csproj deleted file mode 100644 index 98d9884ee14b27..00000000000000 --- a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.csproj +++ /dev/null @@ -1,33 +0,0 @@ - - - - netstandard2.0;netstandard2.1;$(NetFrameworkMinimum);$(NetCoreAppMinimum);$(NetCoreAppCurrent) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.netstandard20.cs b/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.netstandard20.cs deleted file mode 100644 index 3044055cc48343..00000000000000 --- a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.netstandard20.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace System -{ - public readonly partial struct Index : System.IEquatable - { - private readonly int _dummyPrimitive; - public Index(int value, bool fromEnd = false) { throw null; } - public static System.Index End { get { throw null; } } - public bool IsFromEnd { get { throw null; } } - public static System.Index Start { get { throw null; } } - public int Value { get { throw null; } } - public bool Equals(System.Index other) { throw null; } - public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? value) { throw null; } - public static System.Index FromEnd(int value) { throw null; } - public static System.Index FromStart(int value) { throw null; } - public override int GetHashCode() { throw null; } - public int GetOffset(int length) { throw null; } - public static implicit operator System.Index (int value) { throw null; } - public override string ToString() { throw null; } - } - public readonly partial struct Range : System.IEquatable - { - private readonly int _dummyPrimitive; - public Range(System.Index start, System.Index end) { throw null; } - public static System.Range All { get { throw null; } } - public System.Index End { get { throw null; } } - public System.Index Start { get { throw null; } } - public static System.Range EndAt(System.Index end) { throw null; } - public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] object? value) { throw null; } - public bool Equals(System.Range other) { throw null; } - public override int GetHashCode() { throw null; } - public (int Offset, int Length) GetOffsetAndLength(int length) { throw null; } - public static System.Range StartAt(System.Index start) { throw null; } - public override string ToString() { throw null; } - } -} \ No newline at end of file diff --git a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.Forwards.netstandard21.cs b/src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.Forwards.cs similarity index 70% rename from src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.Forwards.netstandard21.cs rename to src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.Forwards.cs index 4bfc68544aa76d..bf96db3ece9e41 100644 --- a/src/libraries/Microsoft.Bcl.Memory/ref/Microsoft.Bcl.Memory.Forwards.netstandard21.cs +++ b/src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.Forwards.cs @@ -3,3 +3,6 @@ [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Index))] [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Range))] +#if NET9_0_OR_GREATER +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.Text.Base64Url))] +#endif diff --git a/src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.csproj b/src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.csproj index 3221a48df0a13b..bd686ec2da920e 100644 --- a/src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.csproj +++ b/src/libraries/Microsoft.Bcl.Memory/src/Microsoft.Bcl.Memory.csproj @@ -3,8 +3,8 @@ netstandard2.0;netstandard2.1;$(NetFrameworkMinimum);$(NetCoreAppMinimum);$(NetCoreAppCurrent) true + $(DefineConstants);MICROSOFT_BCL_MEMORY true - MICROSOFT_BCL_MEMORY;$(DefineConstants) @@ -27,51 +27,30 @@ true - - - - - - + - - System\Buffers\Text\Base64Helper\Base64Helper.cs - - - System\Buffers\Text\Base64Helper\Base64DecoderHelper.cs - - - System\Buffers\Text\Base64Helper\Base64EncoderHelper.cs - - - System\Buffers\Text\Base64Helper\Base64ValidatorHelper.cs - - - System\Buffers\Text\Base64Url\Base64UrlDecoder.cs - - - System\Buffers\Text\Base64Url\Base64UrlEncoder.cs - - - System\Buffers\Text\Base64Url\Base64UrlValidator.cs - + + + + + + + - - - - + + + - - + + + + - - - diff --git a/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.cs b/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.cs deleted file mode 100644 index d952814464f676..00000000000000 --- a/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ - -namespace System -{ - public static partial class MathF - { - public const float E = 2.7182817f; - public const float PI = 3.1415927f; - public static float Abs(float x) { throw null; } - public static float Acos(float x) { throw null; } - public static float Asin(float x) { throw null; } - public static float Atan(float x) { throw null; } - public static float Atan2(float y, float x) { throw null; } - public static float Ceiling(float x) { throw null; } - public static float Cos(float x) { throw null; } - public static float Cosh(float x) { throw null; } - public static float Exp(float x) { throw null; } - public static float Floor(float x) { throw null; } - public static float IEEERemainder(float x, float y) { throw null; } - public static float Log(float x) { throw null; } - public static float Log(float x, float y) { throw null; } - public static float Log10(float x) { throw null; } - public static float Max(float x, float y) { throw null; } - public static float Min(float x, float y) { throw null; } - public static float Pow(float x, float y) { throw null; } - public static float Round(float x) { throw null; } - public static float Round(float x, int digits) { throw null; } - public static float Round(float x, int digits, System.MidpointRounding mode) { throw null; } - public static float Round(float x, System.MidpointRounding mode) { throw null; } - public static int Sign(float x) { throw null; } - public static float Sin(float x) { throw null; } - public static float Sinh(float x) { throw null; } - public static float Sqrt(float x) { throw null; } - public static float Tan(float x) { throw null; } - public static float Tanh(float x) { throw null; } - public static float Truncate(float x) { throw null; } - } -} diff --git a/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.csproj b/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.csproj deleted file mode 100644 index 36d3ac9605c195..00000000000000 --- a/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.csproj +++ /dev/null @@ -1,12 +0,0 @@ - - - - netstandard2.0;$(NetFrameworkMinimum);netstandard2.1 - - - - - - - - diff --git a/src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.Forwards.cs b/src/libraries/Microsoft.Bcl.Numerics/src/Microsoft.Bcl.Numerics.Forwards.cs similarity index 100% rename from src/libraries/Microsoft.Bcl.Numerics/ref/Microsoft.Bcl.Numerics.Forwards.cs rename to src/libraries/Microsoft.Bcl.Numerics/src/Microsoft.Bcl.Numerics.Forwards.cs diff --git a/src/libraries/Microsoft.Bcl.Numerics/src/Microsoft.Bcl.Numerics.csproj b/src/libraries/Microsoft.Bcl.Numerics/src/Microsoft.Bcl.Numerics.csproj index b2a5092af94e80..0ab1a5b2cab2e7 100644 --- a/src/libraries/Microsoft.Bcl.Numerics/src/Microsoft.Bcl.Numerics.csproj +++ b/src/libraries/Microsoft.Bcl.Numerics/src/Microsoft.Bcl.Numerics.csproj @@ -3,23 +3,23 @@ netstandard2.0;$(NetFrameworkMinimum);netstandard2.1 true - false true - Provides the System.MathF for .NET Standard 2.0 - - true - - - - - - - + + + + + + + + + + + + + diff --git a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.Common.cs b/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.Common.cs deleted file mode 100644 index 9c379eecfbaa95..00000000000000 --- a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.Common.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -namespace System.Threading.Tasks -{ - public static class TimeProviderTaskExtensions - { - public static System.Threading.Tasks.Task Delay(this System.TimeProvider timeProvider, System.TimeSpan delay, System.Threading.CancellationToken cancellationToken = default) { throw null; } - public static System.Threading.Tasks.Task WaitAsync(this System.Threading.Tasks.Task task, System.TimeSpan timeout, System.TimeProvider timeProvider, System.Threading.CancellationToken cancellationToken = default) { throw null; } - public static System.Threading.Tasks.Task WaitAsync(this System.Threading.Tasks.Task task, System.TimeSpan timeout, System.TimeProvider timeProvider, System.Threading.CancellationToken cancellationToken = default) { throw null; } - public static System.Threading.CancellationTokenSource CreateCancellationTokenSource(this System.TimeProvider timeProvider, System.TimeSpan delay) { throw null; } - } -} diff --git a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.cs b/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.cs deleted file mode 100644 index 2d71733aa782e7..00000000000000 --- a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// ------------------------------------------------------------------------------ -// Changes to this file must follow the https://aka.ms/api-review process. -// ------------------------------------------------------------------------------ -namespace System -{ - public abstract class TimeProvider - { - public static TimeProvider System { get; } - protected TimeProvider() { throw null; } - public virtual System.DateTimeOffset GetUtcNow() { throw null; } - public System.DateTimeOffset GetLocalNow() { throw null; } - public virtual System.TimeZoneInfo LocalTimeZone { get; } - public virtual long TimestampFrequency { get; } - public virtual long GetTimestamp() { throw null; } - public TimeSpan GetElapsedTime(long startingTimestamp) { throw null; } - public TimeSpan GetElapsedTime(long startingTimestamp, long endingTimestamp) { throw null; } - public virtual System.Threading.ITimer CreateTimer(System.Threading.TimerCallback callback, object? state, System.TimeSpan dueTime, System.TimeSpan period) { throw null; } - } -} -namespace System.Threading -{ - public interface ITimer : System.IDisposable, System.IAsyncDisposable - { - bool Change(System.TimeSpan dueTime, System.TimeSpan period); - } -} diff --git a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.csproj b/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.csproj deleted file mode 100644 index c8e6af37e77614..00000000000000 --- a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - - netstandard2.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum) - - - - - - - - - - - - - - - - - - - diff --git a/src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.Forwards.cs b/src/libraries/Microsoft.Bcl.TimeProvider/src/Microsoft.Bcl.TimeProvider.Forwards.cs similarity index 100% rename from src/libraries/Microsoft.Bcl.TimeProvider/ref/Microsoft.Bcl.TimeProvider.Forwards.cs rename to src/libraries/Microsoft.Bcl.TimeProvider/src/Microsoft.Bcl.TimeProvider.Forwards.cs diff --git a/src/libraries/Microsoft.Bcl.TimeProvider/src/Microsoft.Bcl.TimeProvider.csproj b/src/libraries/Microsoft.Bcl.TimeProvider/src/Microsoft.Bcl.TimeProvider.csproj index 8905cf3bb2035b..ffdf6e1badead3 100644 --- a/src/libraries/Microsoft.Bcl.TimeProvider/src/Microsoft.Bcl.TimeProvider.csproj +++ b/src/libraries/Microsoft.Bcl.TimeProvider/src/Microsoft.Bcl.TimeProvider.csproj @@ -2,36 +2,34 @@ netstandard2.0;$(NetFrameworkMinimum);$(NetCoreAppMinimum) - false true - Provides support for system time abstraction primitives for .NET Framework and .NET Standard. - -Commonly Used Types: -System.TimeProvider -System.ITimer + Provides support for system time abstraction primitives for .NET Framework and .NET Standard. - - - true - true - + + + + true + - - - - + + + + - - - + + + + - - - + + + + + - - + + diff --git a/src/libraries/Microsoft.Bcl.TimeProvider/tests/Microsoft.Bcl.TimeProvider.Tests.csproj b/src/libraries/Microsoft.Bcl.TimeProvider/tests/Microsoft.Bcl.TimeProvider.Tests.csproj index f7e1b14dc4a662..9fceaa62f33396 100644 --- a/src/libraries/Microsoft.Bcl.TimeProvider/tests/Microsoft.Bcl.TimeProvider.Tests.csproj +++ b/src/libraries/Microsoft.Bcl.TimeProvider/tests/Microsoft.Bcl.TimeProvider.Tests.csproj @@ -1,14 +1,16 @@ + $(NetCoreAppCurrent);$(NetFrameworkMinimum) $(DefineConstants);TESTEXTENSIONS + + - - + diff --git a/src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/ref/Microsoft.Extensions.DependencyInjection.Abstractions.csproj b/src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/ref/Microsoft.Extensions.DependencyInjection.Abstractions.csproj index 522ab3503c7a1b..ecb268deba951c 100644 --- a/src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/ref/Microsoft.Extensions.DependencyInjection.Abstractions.csproj +++ b/src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/ref/Microsoft.Extensions.DependencyInjection.Abstractions.csproj @@ -16,7 +16,7 @@ - + diff --git a/src/libraries/Microsoft.Extensions.DependencyInjection/ref/Microsoft.Extensions.DependencyInjection.csproj b/src/libraries/Microsoft.Extensions.DependencyInjection/ref/Microsoft.Extensions.DependencyInjection.csproj index 522569cbc5a0ef..c3eb01a5ae60c4 100644 --- a/src/libraries/Microsoft.Extensions.DependencyInjection/ref/Microsoft.Extensions.DependencyInjection.csproj +++ b/src/libraries/Microsoft.Extensions.DependencyInjection/ref/Microsoft.Extensions.DependencyInjection.csproj @@ -1,4 +1,5 @@ + $(NetCoreAppCurrent);$(NetCoreAppPrevious);$(NetCoreAppMinimum);netstandard2.1;netstandard2.0;$(NetFrameworkMinimum) @@ -14,6 +15,7 @@ - + + diff --git a/src/libraries/Microsoft.Extensions.Hosting.Abstractions/ref/Microsoft.Extensions.Hosting.Abstractions.csproj b/src/libraries/Microsoft.Extensions.Hosting.Abstractions/ref/Microsoft.Extensions.Hosting.Abstractions.csproj index 96046ae4010396..81d3388ae9eb31 100644 --- a/src/libraries/Microsoft.Extensions.Hosting.Abstractions/ref/Microsoft.Extensions.Hosting.Abstractions.csproj +++ b/src/libraries/Microsoft.Extensions.Hosting.Abstractions/ref/Microsoft.Extensions.Hosting.Abstractions.csproj @@ -1,4 +1,5 @@ + $(NetCoreAppCurrent);$(NetCoreAppPrevious);$(NetCoreAppMinimum);netstandard2.1;netstandard2.0;$(NetFrameworkMinimum) $(NoWarn);CS0618 @@ -22,6 +23,7 @@ - + + diff --git a/src/libraries/System.Net.ServerSentEvents/ref/System.Net.ServerSentEvents.csproj b/src/libraries/System.Net.ServerSentEvents/ref/System.Net.ServerSentEvents.csproj index 114d16ec0664bf..50bc340a7191a9 100644 --- a/src/libraries/System.Net.ServerSentEvents/ref/System.Net.ServerSentEvents.csproj +++ b/src/libraries/System.Net.ServerSentEvents/ref/System.Net.ServerSentEvents.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/libraries/System.Text.Json/ref/System.Text.Json.csproj b/src/libraries/System.Text.Json/ref/System.Text.Json.csproj index 9e41bc3097af08..f578aa9af4f587 100644 --- a/src/libraries/System.Text.Json/ref/System.Text.Json.csproj +++ b/src/libraries/System.Text.Json/ref/System.Text.Json.csproj @@ -39,7 +39,7 @@ - + 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 eb088734e55abb..d9bdbb45d2eb30 100644 --- a/src/libraries/System.Threading.Channels/ref/System.Threading.Channels.csproj +++ b/src/libraries/System.Threading.Channels/ref/System.Threading.Channels.csproj @@ -1,4 +1,5 @@ + $(NetCoreAppCurrent);$(NetCoreAppPrevious);$(NetCoreAppMinimum);netstandard2.1;netstandard2.0;$(NetFrameworkMinimum) @@ -18,6 +19,7 @@ - + + \ No newline at end of file diff --git a/src/libraries/System.Threading.RateLimiting/ref/System.Threading.RateLimiting.csproj b/src/libraries/System.Threading.RateLimiting/ref/System.Threading.RateLimiting.csproj index 821f9399ea83de..edc78687b8a96a 100644 --- a/src/libraries/System.Threading.RateLimiting/ref/System.Threading.RateLimiting.csproj +++ b/src/libraries/System.Threading.RateLimiting/ref/System.Threading.RateLimiting.csproj @@ -1,11 +1,12 @@  + $(NetCoreAppCurrent);$(NetCoreAppPrevious);$(NetCoreAppMinimum);netstandard2.0;$(NetFrameworkMinimum) - + @@ -14,4 +15,5 @@ + \ No newline at end of file