Skip to content

Commit f8c2fda

Browse files
committed
Tweaks
1 parent 7f6a69b commit f8c2fda

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/msbuild/errors/msb1060.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This article describes the MSB1060 error code.
4545

4646
There are two errors that can give this error code. The first relates to the `-warnNotAsError` (or the short form `-noerr`) command-line switch. See [MSBuild command line reference](../msbuild-command-line-reference.md). The error is shown when the `-warnNotAsError` (or `-noerr`) switch is used, but no error codes were given. The switch is expected to be followed by a list of error codes, separated by a semicolon or comma. For example:
4747

48-
`msbuild.exe -err -noerr MSB3187;MSBxxxx`
48+
`msbuild.exe -err -noerr MSB3187;MSB3243`
4949

5050
The other error condition that gives this code is when a response file (`.rsp` file) contains an environment variable name, but the environment variable didn't exist or has no value.
5151

docs/msbuild/errors/msb3825.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,15 @@ This article describes the MSB3825 warning code.
3434
-->
3535
## Description
3636

37-
This warning occurs with .NET 8 and earlier. The .NET type <xref:BinaryFormatter>, previously commonly used for serializing and deserializing arbitrary .NET types, isn't considered secure, because it allows arbitrary .NET types to be injected into an assembly via the deserialization process.
37+
This warning occurs with .NET 8 and earlier. The deprecated .NET type <xref:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter>, previously commonly used for serializing and deserializing arbitrary .NET types, isn't considered secure, because it allows arbitrary .NET types to be injected into an assembly via the deserialization process.
3838

3939
.NET 9 handles BinaryFormatter using a secure algorithm, so there's no issue when using .NET 9.
4040

4141
## Resolution
4242

43-
If you upgrade to .NET 9, you won't get this warning, and your app won't be exposed to the security risk if it uses `BinaryFormatter`.
43+
If you upgrade to .NET 9, you won't get this warning, but you'll have to implement another solution if your code uses `BinaryFormatter`. See the [migration guide](https://aka.ms/binaryformatter-migration-guide) for alternatives to `BinaryFormatter`.
4444

45-
For .NET 8 and earlier, see the [migration guide](https://aka.ms/binaryformatter-migration-guide) for alternatives to `BinaryFormatter`.
46-
47-
You can also suppress the warning either by setting the `GenerateResourceWarnOnBinaryFormatterUse` property to false, as mentioned in the message, or by setting the `$(NoWarn)` property to a property group in your project file, as follows:
45+
For .NET 8 and earlier, you can suppress the warning either by setting the `GenerateResourceWarnOnBinaryFormatterUse` property to false, as mentioned in the message, or by setting the `$(NoWarn)` property to a property group in your project file, as follows:
4846

4947
```xml
5048
<PropertyGroup>

0 commit comments

Comments
 (0)