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/core/compatibility/core-libraries/9.0/obsolete-apis-with-custom-diagnostics.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ In previous .NET versions, these APIs can be used without any build warning. In
15
15
The following table lists the custom diagnostic IDs and their corresponding warning messages for obsoleted APIs.
16
16
17
17
| Diagnostic ID | Description | Severity |
18
-
| - | - |
18
+
|---------------|-------------|----------|
19
19
|[SYSLIB0009](../../../../fundamentals/syslib-diagnostics/syslib0009.md)|<xref:System.Net.AuthenticationManager> is not supported. Methods will no-op or throw <xref:System.PlatformNotSupportedException>. | Warning |
20
-
|[SYSLIB0014: WebRequest, HttpWebRequest, ServicePoint, WebClient are obsolete](../../../../fundamentals/syslib-diagnostics/syslib0014.md)|<xref:System.Net.ServicePointManager> is fully obsolete. Settings on <xref:System.Net.ServicePointManager> don't affect <xref:System.Net.Security.SslStream> or <xref:System.Net.Http.HttpClient> (this behavior hasn't changed since .NET 6). | Warning |
20
+
|[SYSLIB0014](../../../../fundamentals/syslib-diagnostics/syslib0014.md)|<xref:System.Net.ServicePointManager> is fully obsolete. Settings on <xref:System.Net.ServicePointManager> don't affect <xref:System.Net.Security.SslStream> or <xref:System.Net.Http.HttpClient> (this behavior hasn't changed since .NET 6). | Warning |
21
21
|[SYSLIB0054](../../../../fundamentals/syslib-diagnostics/syslib0054.md)|<xref:System.Threading.Thread.VolatileRead%2A?displayProperty=nameWithType> and <xref:System.Threading.Thread.VolatileWrite%2A?displayProperty=nameWithType> are obsolete. Use <xref:System.Threading.Volatile.Read%2A?displayProperty=nameWithType> or <xref:System.Threading.Volatile.Write%2A?displayProperty=nameWithType> instead. | Warning |
22
22
|[SYSLIB0055](../../../../fundamentals/syslib-diagnostics/syslib0055.md)|`AdvSimd.ShiftRightLogicalRoundedNarrowingSaturate*` methods with signed parameters are obsolete. Use the unsigned overloads instead. | Warning |
23
23
|[SYSLIB0056](../../../../fundamentals/syslib-diagnostics/syslib0056.md)|`Assembly.LoadFrom` with a custom `AssemblyHashAlgorithm` is obsolete. Use overloads without an `AssemblyHashAlgorithm`. | Warning |
|<xref:System.AppDomain.CreateDomain%2A?displayProperty=nameWithType>| All |
23
23
|<xref:System.AppDomain.ExecuteAssembly(System.String,System.String[],System.Byte[],System.Configuration.Assemblies.AssemblyHashAlgorithm)?displayProperty=nameWithType>| All |
24
24
|<xref:System.AppDomain.Unload(System.AppDomain)?displayProperty=nameWithType>| All |
25
25
|<xref:System.Console.CapsLock?displayProperty=nameWithType>| Linux and macOS |
@@ -34,29 +34,29 @@ This article organizes the affected APIs by namespace.
34
34
## System.CodeDom.Compiler
35
35
36
36
| Member | Platforms that throw |
37
-
| - | - |
37
+
|--------|----------------------|
38
38
|<xref:System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromDom%2A?displayProperty=nameWithType>| All |
39
39
|<xref:System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile%2A?displayProperty=nameWithType>| All |
40
40
|<xref:System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource%2A?displayProperty=nameWithType>| All |
41
41
42
42
## System.Collections.Specialized
43
43
44
44
| Member | Platforms that throw |
45
-
| - | - |
45
+
|--------|----------------------|
46
46
|<xref:System.Collections.Specialized.NameObjectCollectionBase.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
47
47
|<xref:System.Collections.Specialized.NameObjectCollectionBase.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
48
48
|<xref:System.Collections.Specialized.NameObjectCollectionBase.OnDeserialization(System.Object)?displayProperty=nameWithType>| All |
49
49
50
50
## System.Configuration
51
51
52
52
| Member | Platforms that throw |
53
-
| - | - |
53
+
|--------|----------------------|
54
54
|<xref:System.Configuration.RsaProtectedConfigurationProvider?displayProperty=nameWithType> (all members) | All |
55
55
56
56
## System.Console
57
57
58
58
| Member | Platforms that throw |
59
-
| - | - |
59
+
|--------|----------------------|
60
60
|<xref:System.Console.Beep?displayProperty=nameWithType>| Linux and macOS |
61
61
|<xref:System.Console.BufferHeight?displayProperty=nameWithType> (set only) | Linux and macOS |
62
62
|<xref:System.Console.BufferWidth?displayProperty=nameWithType> (set only) | Linux and macOS |
@@ -74,13 +74,13 @@ This article organizes the affected APIs by namespace.
74
74
## System.Data.Common
75
75
76
76
| Member | Platforms that throw |
77
-
| - | - |
77
+
|--------|----------------------|
78
78
|<xref:System.Data.Common.DbDataReader.GetSchemaTable%2A?displayProperty=nameWithType> (throws <xref:System.NotSupportedException>) | All |
79
79
80
80
## System.Diagnostics.Process
81
81
82
82
| Member | Platforms that throw |
83
-
| - | - |
83
+
|--------|----------------------|
84
84
|<xref:System.Diagnostics.Process.MaxWorkingSet?displayProperty=nameWithType> (set only) | Linux |
85
85
|<xref:System.Diagnostics.Process.MinWorkingSet?displayProperty=nameWithType> (set only) | Linux |
@@ -98,14 +98,14 @@ This article organizes the affected APIs by namespace.
98
98
## System.IO
99
99
100
100
| Member | Platforms that throw |
101
-
| - | - |
101
+
|--------|----------------------|
102
102
|<xref:System.IO.FileSystemInfo.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
103
103
|<xref:System.IO.FileSystemInfo.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
104
104
105
105
## System.IO.Pipes
106
106
107
107
| Member | Platforms that throw |
108
-
| - | - |
108
+
|--------|----------------------|
109
109
|<xref:System.IO.Pipes.NamedPipeClientStream.NumberOfServerInstances?displayProperty=nameWithType>| Linux and macOS |
110
110
|<xref:System.IO.Pipes.NamedPipeServerStream.GetImpersonationUserName?displayProperty=nameWithType>| Linux and macOS |
111
111
|<xref:System.IO.Pipes.PipeStream.InBufferSize?displayProperty=nameWithType>| Linux and macOS |
@@ -116,13 +116,14 @@ This article organizes the affected APIs by namespace.
116
116
## System.Media
117
117
118
118
| Member | Platforms that throw |
119
-
| - | - |
119
+
|--------|----------------------|
120
120
|<xref:System.Media.SoundPlayer.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
|<xref:System.Net.AuthenticationManager?displayProperty=fullName>\*| All |
126
127
|<xref:System.Net.AuthenticationManager.Authenticate(System.String,System.Net.WebRequest,System.Net.ICredentials)?displayProperty=nameWithType>| All |
127
128
|<xref:System.Net.AuthenticationManager.PreAuthenticate(System.Net.WebRequest,System.Net.ICredentials)?displayProperty=nameWithType>| All |
128
129
|<xref:System.Net.FileWebRequest.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
@@ -141,29 +142,31 @@ This article organizes the affected APIs by namespace.
141
142
|<xref:System.Net.WebResponse.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
142
143
|<xref:System.Net.WebResponse.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
143
144
145
+
\* .NET 9 and later versions.
146
+
144
147
## System.Net.NetworkInformation
145
148
146
149
| Member | Platforms that throw |
147
-
| - | - |
150
+
|--------|----------------------|
148
151
|<xref:System.Net.NetworkInformation.Ping.Send%2A?displayProperty=nameWithType>| Windows (UWP) |
149
152
150
153
## System.Net.Sockets
151
154
152
155
| Member | Platforms that throw |
153
-
| - | - |
156
+
|--------|----------------------|
154
157
|<xref:System.Net.Sockets.Socket.%23ctor(System.Net.Sockets.SocketInformation)>| All |
155
158
|<xref:System.Net.Sockets.Socket.DuplicateAndClose(System.Int32)?displayProperty=nameWithType>| All |
156
159
157
160
## System.Net.WebSockets
158
161
159
162
| Member | Platforms that throw |
160
-
| - | - |
163
+
|--------|----------------------|
161
164
|<xref:System.Net.WebSockets.WebSocket.RegisterPrefixes?displayProperty=nameWithType>| All |
162
165
163
166
## System.Reflection
164
167
165
168
| Member | Platforms that throw |
166
-
| - | - |
169
+
|--------|----------------------|
167
170
|<xref:System.Reflection.Assembly.CodeBase?displayProperty=nameWithType>| All |
168
171
|<xref:System.Reflection.Assembly.EscapedCodeBase?displayProperty=nameWithType>| All |
169
172
|<xref:System.Reflection.Assembly.LoadFrom(System.String,System.Byte[],System.Configuration.Assemblies.AssemblyHashAlgorithm)?displayProperty=nameWithType>| All |
@@ -178,13 +181,13 @@ This article organizes the affected APIs by namespace.
178
181
## System.Runtime.CompilerServices
179
182
180
183
| Member | Platforms that throw |
181
-
| - | - |
184
+
|--------|----------------------|
182
185
|<xref:System.Runtime.CompilerServices.DebugInfoGenerator.CreatePdbGenerator?displayProperty=nameWithType>| All |
183
186
184
187
## System.Runtime.InteropServices
185
188
186
189
| Member | Platforms that throw |
187
-
| - | - |
190
+
|--------|----------------------|
188
191
|<xref:System.Runtime.InteropServices.IDispatchImplAttribute>| All |
189
192
|<xref:System.Runtime.InteropServices.Marshal.GetIDispatchForObject(System.Object)?displayProperty=nameWithType>| All |
190
193
|<xref:System.Runtime.InteropServices.RuntimeEnvironment.SystemConfigurationFile?displayProperty=nameWithType>| All |
@@ -197,17 +200,19 @@ This article organizes the affected APIs by namespace.
197
200
## System.Runtime.Serialization
198
201
199
202
| Member | Platforms that throw |
200
-
| - | - |
201
-
|<xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(System.IO.Stream,System.Object)?displayProperty=fullName>*| All |
202
-
|<xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream)?displayProperty=nameWithType>*| All |
203
+
|--------|----------------------|
204
+
|<xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(System.IO.Stream,System.Object)?displayProperty=fullName>\*| All |
205
+
|<xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(System.IO.Stream,System.Object)?displayProperty=fullName>† | All |
206
+
|<xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream)?displayProperty=nameWithType>† | All |
203
207
|<xref:System.Runtime.Serialization.XsdDataContractExporter.Schemas?displayProperty=nameWithType>| All |
204
208
205
-
\* .NET 8 and later versions only for all project types except Windows Forms and WPF.
209
+
\* .NET 9 and later versions.
210
+
† .NET 8 only for all project types except Windows Forms and WPF.
206
211
207
212
## System.Security
208
213
209
214
| Member | Platforms that throw |
210
-
| - | - |
215
+
|--------|----------------------|
211
216
|<xref:System.Security.CodeAccessPermission.Deny?displayProperty=nameWithType>| All |
212
217
|<xref:System.Security.CodeAccessPermission.PermitOnly?displayProperty=nameWithType>| All |
213
218
|<xref:System.Security.PermissionSet.ConvertPermissionSet(System.String,System.Byte[],System.String)?displayProperty=nameWithType>| All |
@@ -226,7 +231,7 @@ This article organizes the affected APIs by namespace.
226
231
## System.Security.Claims
227
232
228
233
| Member | Platforms that throw |
229
-
| - | - |
234
+
|--------|----------------------|
230
235
|<xref:System.Security.Claims.ClaimsPrincipal.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
231
236
|<xref:System.Security.Claims.ClaimsPrincipal.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
232
237
|<xref:System.Security.Claims.ClaimsIdentity.%23ctor(System.Runtime.Serialization.SerializationInfo)>| All |
@@ -236,7 +241,7 @@ This article organizes the affected APIs by namespace.
236
241
## System.Security.Cryptography
237
242
238
243
| Member | Platforms that throw |
239
-
| - | - |
244
+
|--------|----------------------|
240
245
|<xref:System.Security.Cryptography.AsymmetricAlgorithm.Create(System.String)?displayProperty=nameWithType>| All |
241
246
|<xref:System.Security.Cryptography.CngAlgorithm?displayProperty=nameWithType>| Linux and macOS |
242
247
|<xref:System.Security.Cryptography.CngAlgorithmGroup?displayProperty=nameWithType>| Linux and macOS |
@@ -289,14 +294,14 @@ This article organizes the affected APIs by namespace.
289
294
## System.Security.Cryptography.Pkcs
290
295
291
296
| Member | Platforms that throw |
292
-
| - | - |
297
+
|--------|----------------------|
293
298
|<xref:System.Security.Cryptography.Pkcs.CmsSigner.%23ctor(System.Security.Cryptography.CspParameters)>| All |
294
299
|<xref:System.Security.Cryptography.Pkcs.SignerInfo.ComputeCounterSignature?displayProperty=nameWithType>| All |
295
300
296
301
## System.Security.Cryptography.X509Certificates
297
302
298
303
| Member | Platforms that throw |
299
-
| - | - |
304
+
|--------|----------------------|
300
305
|<xref:System.Security.Cryptography.X509Certificates.X509Certificate.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
301
306
|<xref:System.Security.Cryptography.X509Certificates.X509Certificate.Import%2A?displayProperty=nameWithType>| All |
302
307
|<xref:System.Security.Cryptography.X509Certificates.X509Certificate2.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
@@ -305,31 +310,31 @@ This article organizes the affected APIs by namespace.
|<xref:System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
310
315
311
316
## System.Security.Policy
312
317
313
318
| Member | Platforms that throw |
314
-
| - | - |
319
+
|--------|----------------------|
315
320
|<xref:System.Security.Policy.Hash.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
316
321
317
322
## System.ServiceProcess.ServiceController
318
323
319
324
| Member | Platforms that throw |
320
-
| - | - |
325
+
|--------|----------------------|
321
326
|<xref:System.ServiceProcess.TimeoutException.%23ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)>| All |
322
327
323
328
## System.Text.RegularExpressions
324
329
325
330
| Member | Platforms that throw |
326
-
| - | - |
331
+
|--------|----------------------|
327
332
|<xref:System.Text.RegularExpressions.Regex.CompileToAssembly%2A?displayProperty=nameWithType>| All |
328
333
329
334
## System.Threading
330
335
331
336
| Member | Platforms that throw |
332
-
| - | - |
337
+
|--------|----------------------|
333
338
|<xref:System.Threading.CompressedStack.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
334
339
|<xref:System.Threading.ExecutionContext.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?displayProperty=nameWithType>| All |
335
340
|<xref:System.Threading.Thread.Abort%2A?displayProperty=nameWithType>| All |
@@ -340,7 +345,7 @@ This article organizes the affected APIs by namespace.
340
345
## System.Xml
341
346
342
347
| Member | Platforms that throw |
343
-
| - | - |
348
+
|--------|----------------------|
344
349
|<xref:System.Xml.XmlDictionaryReader.CreateMtomReader(System.Byte[],System.Int32,System.Int32,System.Text.Encoding[],System.String,System.Xml.XmlDictionaryReaderQuotas,System.Int32,System.Xml.OnXmlDictionaryReaderClose)?displayProperty=nameWithType>| All |
345
350
|<xref:System.Xml.XmlDictionaryReader.CreateMtomReader(System.IO.Stream,System.Text.Encoding[],System.String,System.Xml.XmlDictionaryReaderQuotas,System.Int32,System.Xml.OnXmlDictionaryReaderClose)?displayProperty=nameWithType>| All |
346
351
|<xref:System.Xml.XmlDictionaryWriter.CreateMtomWriter(System.IO.Stream,System.Text.Encoding,System.Int32,System.String,System.String,System.String,System.Boolean,System.Boolean)?displayProperty=nameWithType>| All |
0 commit comments