-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark Obsoletions for .NET 5 (#39269)
* Mark new obsoletions for .NET 5; update existing obsoletions * Exclude DirectoryServicesPermission/DirectoryServicesPermissionAttribute from obsoletions for now * No need to restore SYSLIB0003 at end of Forwards files * Use a common Obsoletions.cs file for all SYSLIB obsoletions * Resurrect CER code behind #ifdef in EventSource * Mark GlobalAssemblyCache overrides as Obsolete * Suppress Thread.Abort() error in ImageAnimator.Unix.cs * Unconditionally mark RoAssembly.GlobalAssemblyCache as obsolete * Rename MSLIB0001 to SYSLIB0001 in ref assembly * Suppress obsoletion warnings in tests * Adopt a uniform #ifdef for NET50_OBSOLETIONS * Fix BinaryFormatter obsoletion message after the rebase * Use SYSTEM_PRIVATE_CORELIB constant instead of NETCOREAPP * Remove the code comment on the ifdef * Apply feedback related to CER obsoletions * Apply feedback related to CAS * Update ref assembly to reflect SecurityManager obsoletion * Fix regression in System.IO.Pipes.NamedPipeServerStream.Windows.RunAsClient
- Loading branch information
1 parent
87d8f7d
commit 329f0db
Showing
195 changed files
with
997 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
namespace System | ||
{ | ||
internal static class Obsoletions | ||
{ | ||
internal const string SharedUrlFormat = "https://aka.ms/dotnet-warnings/{0}"; | ||
|
||
internal const string SystemTextEncodingUTF7Message = "The UTF-7 encoding is insecure and should not be used. Consider using UTF-8 instead."; | ||
internal const string SystemTextEncodingUTF7DiagId = "SYSLIB0001"; | ||
|
||
internal const string PrincipalPermissionAttributeMessage = "PrincipalPermissionAttribute is not honored by the runtime and must not be used."; | ||
internal const string PrincipalPermissionAttributeDiagId = "SYSLIB0002"; | ||
|
||
internal const string CodeAccessSecurityMessage = "Code Access Security is not supported or honored by the runtime."; | ||
internal const string CodeAccessSecurityDiagId = "SYSLIB0003"; | ||
|
||
internal const string ConstrainedExecutionRegionMessage = "The Constrained Execution Region (CER) feature is not supported."; | ||
internal const string ConstrainedExecutionRegionDiagId = "SYSLIB0004"; | ||
|
||
internal const string GlobalAssemblyCacheMessage = "The Global Assembly Cache is not supported."; | ||
internal const string GlobalAssemblyCacheDiagId = "SYSLIB0005"; | ||
|
||
internal const string ThreadAbortMessage = "Thread.Abort is not supported and throws PlatformNotSupportedException."; | ||
internal const string ThreadAbortDiagId = "SYSLIB0006"; | ||
|
||
internal const string DefaultCryptoAlgorithmsMessage = "The default implementation of this cryptography algorithm is not supported."; | ||
internal const string DefaultCryptoAlgorithmsDiagId = "SYSLIB0007"; | ||
|
||
internal const string CreatePdbGeneratorMessage = "The CreatePdbGenerator API is not supported and throws PlatformNotSupportedException."; | ||
internal const string CreatePdbGeneratorDiagId = "SYSLIB0008"; | ||
|
||
internal const string AuthenticationManagerMessage = "The AuthenticationManager Authenticate and PreAuthenticate methods are not supported and throw PlatformNotSupportedException."; | ||
internal const string AuthenticationManagerDiagId = "SYSLIB0009"; | ||
|
||
internal const string RemotingApisMessage = "This Remoting API is not supported and throws PlatformNotSupportedException."; | ||
internal const string RemotingApisDiagId = "SYSLIB0010"; | ||
|
||
internal const string BinaryFormatterMessage = "BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information."; | ||
internal const string BinaryFormatterDiagId = "SYSLIB0011"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.