You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/project/list-of-diagnostics.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ Currently the identifiers `SYSLIB0001` through `SYSLIB0999` are carved out for o
28
28
|__`SYSLIB0013`__| Uri.EscapeUriString can corrupt the Uri string in some cases. Consider using Uri.EscapeDataString for query string components instead. |
29
29
|__`SYSLIB0015`__| DisablePrivateReflectionAttribute has no effect in .NET 6.0+ applications. |
30
30
|__`SYSLIB0016`__| Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations. |
31
-
|__`SYSLIB0017`__| Strong name signing is not supported on this platform.|
31
+
|__`SYSLIB0017`__| Strong name signing is not supported and throws PlatformNotSupportedException. |
32
+
|__`SYSLIB0018`__| ReflectionOnly loading is not supported and throws PlatformNotSupportedException. |
Copy file name to clipboardExpand all lines: src/libraries/Common/src/System/Obsoletions.cs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,10 @@ internal static class Obsoletions
55
55
internalconststringGetContextInfoMessage="Use the Graphics.GetContextInfo overloads that accept arguments for better performance and fewer allocations.";
[System.ObsoleteAttribute("ReflectionOnly loading is not supported on this platform.")]
4574
+
[System.ObsoleteAttribute("ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0018", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
[System.ObsoleteAttribute("ReflectionOnly loading is not supported on this platform.")]
7948
+
[System.ObsoleteAttribute("ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0018", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
7949
7949
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Types and members the loaded assembly depends on might be removed")]
7950
7950
public static System.Reflection.Assembly ReflectionOnlyLoad(byte[] rawAssembly) { throw null; }
7951
-
[System.ObsoleteAttribute("ReflectionOnly loading is not supported on this platform.")]
7951
+
[System.ObsoleteAttribute("ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0018", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
7952
7952
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Types and members the loaded assembly depends on might be removed")]
7953
7953
public static System.Reflection.Assembly ReflectionOnlyLoad(string assemblyString) { throw null; }
7954
-
[System.ObsoleteAttribute("ReflectionOnly loading is not supported on this platform.")]
7954
+
[System.ObsoleteAttribute("ReflectionOnly loading is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0018", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
7955
7955
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("Types and members the loaded assembly depends on might be removed")]
7956
7956
public static System.Reflection.Assembly ReflectionOnlyLoadFrom(string assemblyFile) { throw null; }
7957
7957
public override string ToString() { throw null; }
@@ -8071,7 +8071,7 @@ public AssemblyName(string assemblyName) { }
8071
8071
public System.Reflection.AssemblyNameFlags Flags { get { throw null; } set { } }
8072
8072
public string FullName { get { throw null; } }
8073
8073
public System.Configuration.Assemblies.AssemblyHashAlgorithm HashAlgorithm { get { throw null; } set { } }
8074
-
[System.ObsoleteAttribute("Strong name signing is not supported on this platform.", DiagnosticId = "SYSLIB0017")]
8074
+
[System.ObsoleteAttribute("Strong name signing is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0017", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
8075
8075
public System.Reflection.StrongNameKeyPair? KeyPair { get { throw null; } set { } }
8076
8076
public string? Name { get { throw null; } set { } }
8077
8077
public System.Reflection.ProcessorArchitecture ProcessorArchitecture { get { throw null; } set { } }
@@ -8919,7 +8919,7 @@ public static partial class RuntimeReflectionExtensions
8919
8919
public static System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> GetRuntimeProperties([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.NonPublicProperties | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] this System.Type type) { throw null; }
8920
8920
public static System.Reflection.PropertyInfo? GetRuntimeProperty([System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] this System.Type type, string name) { throw null; }
8921
8921
}
8922
-
[System.ObsoleteAttribute("Strong name signing is not supported on this platform.", DiagnosticId = "SYSLIB0017")]
8922
+
[System.ObsoleteAttribute("Strong name signing is not supported and throws PlatformNotSupportedException.", DiagnosticId = "SYSLIB0017", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
8923
8923
public partial class StrongNameKeyPair : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
0 commit comments