-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41753 from dotnet/main
Publish What's new for .NET 9 Preview 6
- Loading branch information
Showing
24 changed files
with
945 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: "BC0101: Shared output path" | ||
description: Learn about .NET SDK error BC0101, which occurs when an output path or intermediate outpath is shared between multiple projects. | ||
ms.topic: error-reference | ||
ms.date: 07/10/2024 | ||
f1_keywords: | ||
- BC0101 | ||
--- | ||
# BC0101 | ||
|
||
**This article applies to:** ✔️ .NET 9 SDK and later versions | ||
|
||
It's not recommended to share an output path or intermediate output path between multiple projects. Such practice can lead to silent overwrites of the outputs. Order of write depends on the order of the build, which isn't guaranteed unless explicitly configured. Sharing an output path can cause nondeterministic behavior of the build. | ||
|
||
If you want to produce outputs in a consolidated output folder, consider using the [Artifacts output layout](../../sdk/artifacts-output.md) or [Microsoft.Build.Artifacts SDK](https://github.com/microsoft/MSBuildSdks/tree/main/src/Artifacts). | ||
|
||
The full error message is similar to the following example: | ||
|
||
> **BC0101: Two projects should not share their OutputPath or IntermediateOutputPath locations.** |
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,21 @@ | ||
--- | ||
title: "BC0102: Double writes" | ||
description: Learn about .NET SDK error BC0102, which occurs when multiple tasks attempt to write to a single file. | ||
ms.topic: error-reference | ||
ms.date: 07/10/2024 | ||
f1_keywords: | ||
- BC0102 | ||
--- | ||
# BC0102 | ||
|
||
**This article applies to:** ✔️ .NET 9 SDK and later versions | ||
|
||
Multiple tasks attempt to write to a single file. Such behavior can lead to nondeterminism of a build (results can be dependent on the order of task execution if they belong to independent projects) or to lost updates. | ||
|
||
If multiple tasks need to produce or update a single file in a one-by-one pipeline fashion, each intermediate output should be given a distinct name. Distinct files prevent silent mixups if any of the tasks in the chain are skipped or removed. | ||
|
||
The full error message is similar to the following example: | ||
|
||
> **BC0102: Two tasks should not write the same file.** | ||
This rule flags a similar problem as [BC0101 - Shared output path](bc0101.md), but applies more generally to *any* tasks that write to a file. |
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,20 @@ | ||
--- | ||
title: BuildCheck rule list | ||
description: A complete list of BCxxxx build check errors. | ||
ms.topic: error-reference | ||
ms.date: 07/10/2024 | ||
ms.custom: updateeachrelease | ||
f1_keywords: | ||
- BC0101 | ||
- BC0102 | ||
--- | ||
# BuildCheck rule list | ||
|
||
**This article applies to:** ✔️ .NET 9 SDK and later versions | ||
|
||
The following list includes all build-check warnings that you might get from the .NET SDK. | ||
|
||
| Rule | Message | | ||
|---------------------|-------------------------------------------------------------------------------------| | ||
| [BC0101](bc0101.md) | Two projects should not share their OutputPath or IntermediateOutputPath locations. | | ||
| [BC0102](bc0102.md) | Two tasks should not write the same file. | |
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.