Skip to content

Commit 36b234f

Browse files
authored
update articles for collection consistency (#13817)
1 parent 556ef73 commit 36b234f

File tree

10 files changed

+177
-73
lines changed

10 files changed

+177
-73
lines changed

docs/msbuild/errors/msb3021.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3021: Unable to copy file 'source' to 'destination'."
3-
description: "This error occurs when an error occurred when trying to copy a file."
4-
ms.date: "08/15/2022"
2+
title: MSB3021 diagnostic code
3+
description: Learn about the possible causes of the MSB3021 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3021
@@ -18,12 +18,22 @@ ms.subservice: msbuild
1818
---
1919
# MSB3021
2020

21+
This article describes the MSB3021 error code.
22+
23+
## Message text
24+
25+
`Unable to copy file 'source' to 'destination'.`
26+
27+
## Description
28+
2129
This diagnostic code is emitted when an error occurs when trying to copy a file. The error text from the operating system is displayed, which usually provides specific information about the failure.
2230

23-
The message resembles the following, but this text is followed by additional information from the operating system:
31+
## Resolution
32+
33+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided to determine the cause of the problem.
34+
35+
Common causes include the file is locked by another process, insufficient permissions to write to the destination folder, insufficient space on the drive, and so on. Make sure the file is not in use, that MSBuild has write permissions on the destination folder, and that there is sufficient space on the disk.
2436

25-
```output
26-
MSB3021: Unable to copy file 'source' to 'destination'.
27-
```
37+
## Applies to
2838

29-
Look to the additional information provided by the operating system to determine the cause of the problem. Common causes include the file is locked by another process, insufficient permissions to write to the destination folder, insufficient space on the drive, and so on. Make sure the file is not in use, that MSBuild has write permissions on the destination folder, and that there is sufficient space on the disk.
39+
All versions of MSBuild

docs/msbuild/errors/msb3026.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3026: Could not copy 'source' to 'destination'. Beginning retry 'count' in 'milliseconds'."
3-
description: "This diagnostic code is emitted when MSBuild tries multiple times to copy a file."
4-
ms.date: "08/15/2022"
2+
title: MSB3026 diagnostic code
3+
description: Learn about the possible causes of the MSB3026 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3026
@@ -18,12 +18,20 @@ ms.subservice: msbuild
1818
---
1919
# MSB3026
2020

21+
This article describes the MSB3026 error code.
22+
23+
## Message text
24+
25+
`Could not copy 'source' to 'destination'. Beginning retry 'count' in 'milliseconds'.`
26+
27+
## Description
28+
2129
This diagnostic code is emitted when MSBuild tries multiple times to copy a file.
2230

23-
The message resembles the following, but this text is followed by additional information from the operating system:
31+
## Resolution
32+
33+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided to determine the cause of the problem.
2434

25-
```output
26-
MSB3026: Could not copy 'source' to 'destination'. Beginning retry 'count' in 'milliseconds'.
27-
```
35+
## Applies to
2836

29-
Look to the additional information provided by the operating system to determine the cause of the problem.
37+
All versions of MSBuild

docs/msbuild/errors/msb3027.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3027: Could not copy 'source' to 'destination'. Exceeded retry count of 'number'. Failed."
3-
description: "This error occurs when MSBuild tries to copy a file repeatedly and fails when the limit of the number of retries is reached."
4-
ms.date: "07/07/2021"
2+
title: MSB3027 diagnostic code
3+
description: Learn about the possible causes of the MSB3027 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3027
@@ -16,8 +16,24 @@ ms.author: ghogen
1616
manager: mijacobs
1717
ms.subservice: msbuild
1818
---
19-
# MSB3027: Could not copy 'source' to 'dest'. Exceeded retry count of 'number'. Failed
19+
# MSB3027
2020

21-
This error occurs when MSBuild tries to copy a file repeatedly and fails when the limit of the number of retries is reached. Look to the additional error text for any error from the operating system that indicates what the problem might be.
21+
This article describes the MSB3027 error code.
22+
23+
## Message text
24+
25+
`Could not copy 'source' to 'dest'. Exceeded retry count of 'number'. Failed`
26+
27+
## Description
28+
29+
This error occurs when MSBuild tries to copy a file repeatedly and fails when the limit of the number of retries is reached.
30+
31+
## Resolution
32+
33+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided to determine the cause of the problem.
2234

2335
Typical causes include the destination file is in use by another program, the permissions to not allow writing to the destination file, not enough space on the drive, or the network drive is not available due to a network or permissions error.
36+
37+
## Applies to
38+
39+
All versions of MSBuild

docs/msbuild/errors/msb3030.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3030: Could not copy the file 'file' because it was not found."
3-
description: "This error occurs when a file that was supposed to be copied isn't found at the expected location."
4-
ms.date: "08/15/2022"
2+
title: MSB3030 diagnostic code
3+
description: Learn about the possible causes of the MSB3030 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3030
@@ -18,12 +18,20 @@ ms.subservice: msbuild
1818
---
1919
# MSB3030
2020

21-
This error occurs when a file that was supposed to be copied isn't found at the expected location.
21+
This article describes the MSB3030 error code.
22+
23+
## Message text
2224

23-
The full message resembles the following text:
25+
`Could not copy the file 'file' because it was not found.`
2426

25-
```output
26-
MSB3030: Could not copy the file 'file' because it was not found.
27-
```
27+
## Description
28+
29+
This error occurs when a file that was supposed to be copied isn't found at the expected location.
30+
31+
## Resolution
2832

2933
Check that the path is correct, and that the file exists on disk.
34+
35+
## Applies to
36+
37+
All versions of MSBuild

docs/msbuild/errors/msb3041.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3041: Unable to create a manifest resource name for 'resource'."
3-
description: "This error occurs when MSBuild is unable to create a manifest resource name for the specified resource."
4-
ms.date: "08/15/2022"
2+
title: MSB3041 diagnostic code
3+
description: Learn about the possible causes of the MSB3041 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3041
@@ -18,13 +18,20 @@ ms.subservice: msbuild
1818
---
1919
# MSB3041
2020

21+
This article describes the MSB3041 error code.
22+
23+
## Message text
24+
25+
`Unable to create a manifest resource name for 'resource'.`
26+
27+
## Description
28+
2129
This error occurs when a manifest resource name could not be created for the specified resource.
2230

23-
The message resembles the following, but this text is followed by additional information from the operating system:
31+
## Resolution
2432

25-
```output
26-
MSB3041: Unable to create a manifest resource name for 'resource'.
27-
```
33+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided to determine the cause of the problem.
2834

29-
Look to the additional information for the cause of the failure.
35+
## Applies to
3036

37+
All versions of MSBuild

docs/msbuild/errors/msb3061.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3061: Unable to delete file 'filename'."
3-
description: "This error occurs when MSBuild attempts to delete a file and an operating system error occurs."
4-
ms.date: "08/15/2022"
2+
title: MSB3061 diagnostic code
3+
description: Learn about the possible causes of the MSB3061 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3061
@@ -18,12 +18,20 @@ ms.subservice: msbuild
1818
---
1919
# MSB3061
2020

21-
This diagnostic code is emitted when MSBuild tried to delete a file, but an error occurred and the file couldn't be deleted.
21+
This article describes the MSB3061 error code.
22+
23+
## Message text
2224

23-
The full message is something like:
25+
`Unable to delete file 'filename'.`
2426

25-
```output
26-
MSB3061: Unable to delete file 'filename'.
27-
```
27+
## Description
28+
29+
This diagnostic code is emitted when MSBuild tried to delete a file, but an error occurred and the file couldn't be deleted.
30+
31+
## Resolution
2832

2933
Check that the file exists and is at the expected location, MSBuild has write permissions to the file and folder, the file isn't being used by another process, and that isn't a read-only file.
34+
35+
## Applies to
36+
37+
All versions of MSBuild

docs/msbuild/errors/msb3073.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3073: The command 'command' exited with code 'return code'. "
3-
description: "This error occurs when a command exists with an error condition."
4-
ms.date: "08/15/2024"
2+
title: MSB3073 diagnostic code
3+
description: Learn about the possible causes of the MSB3073 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3073
@@ -18,20 +18,28 @@ ms.subservice: msbuild
1818
---
1919
# MSB3073
2020

21-
This diagnostic code is emitted when an executable exited with an error code, or emitted an error in the expected format. Specifically, the MSBuild [Exec task](../exec-task.md) encountered an error condition in the executable it was trying to run.
21+
This article describes the MSB3073 error code.
22+
23+
## Message text
2224

23-
The complete message is something like this:
25+
`The command 'command' exited with code 'return code'.`
2426

25-
```output
26-
MSB3073: The command 'command' exited with code 'return code'.
27-
```
27+
## Description
28+
29+
This diagnostic code is emitted when an executable exited with an error code, or emitted an error in the expected format. Specifically, the MSBuild [Exec task](../exec-task.md) encountered an error condition in the executable it was trying to run.
2830

2931
The meaning of the return code is specific to the executable that was being run. Refer to the documentation for the tool for the interpretation of a non-zero exit code. If you get this error and the exit code is zero, it's because the output contained text that was interpreted as an error because the `Exec` task was invoked with the `CustomErrorRegularExpression` set to a string that matched something in the tool's output.
3032

33+
## Resolution
34+
3135
Look to the output of the command to determine the root cause of the failure. If logging was enabled in the build, the output might be written to the build log.
3236

3337
To diagnose the error, first enable a diagnostic log (use the `-verbosity:diag` command-line switch), and check the MSBuild log file with the full diagnostics output. For bigger output logs on large projects, consider using the binary log (`-bl` command-line switch) and the [MSBuild Structured Log Viewer](https://msbuildlog.com/) to view the output more easily.
3438

3539
You can also set the `MSBuildDebugEngine` environment variable to 1 to get all possible logs. See [Building MSBuild for the .NET Framework - Logs](https://github.com/dotnet/msbuild/blob/main/documentation/wiki/Building-Testing-and-Debugging-on-Full-Framework-MSBuild.md#logs).
3640

3741
It might be helpful to reproduce the error in isolation. Try running the tool separately with the same inputs and command-line arguments that MSBuild used in the build. If symbols are available and you have a Debug build of the tool, you can try attaching a debugger to the tool and debug the tool itself to see what the problem is.
42+
43+
## Applies to
44+
45+
All versions of MSBuild

docs/msbuild/errors/msb3075.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3075: The command 'name' exited with code 'error-code'."
3-
description: "This error occurs when MSBuild isn't running with sufficient privileges to run a particular command."
4-
ms.date: "06/18/2021"
2+
title: MSB3075 diagnostic code
3+
description: Learn about the possible causes of the MSB3075 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3075
@@ -16,12 +16,26 @@ ms.author: ghogen
1616
manager: mijacobs
1717
ms.subservice: msbuild
1818
---
19-
# MSB3075: The command 'name' exited with code 'error-code'. Please verify that you have sufficient rights to run this command
19+
# MSB3075
20+
21+
This article describes the MSB3075 error code.
22+
23+
## Message text
24+
25+
`The command 'name' exited with code 'error-code'. Please verify that you have sufficient rights to run this command`
26+
27+
## Description
2028

2129
This error occurs when MSBuild isn't running with sufficient privileges to run a particular command.
2230

31+
## Resolution
32+
2333
You might be tempted to run MSBuild or Visual Studio as Administrator to resolve the issue, but that isn't usually necessary.
2434

2535
Check the executable listed in the error message and make sure it allows execute permissions.
2636

2737
The error can occur in projects that write to the registry, which usually requires elevated privileges. If you are building a C++ project, enabling [Per-user Redirection](/cpp/build/reference/linker-property-pages#per-user-redirection) in the Linker settings might solve the issue.
38+
39+
## Applies to
40+
41+
All versions of MSBuild

docs/msbuild/errors/msb3086.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3086"
3-
description: "Task could not find  'tool' using the SdkToolsPath 'path' or the registry key 'key'. Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed"
4-
ms.date: "07/07/2021"
2+
title: MSB3086 diagnostic code
3+
description: Learn about the possible causes of the MSB3086 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3086
@@ -18,10 +18,20 @@ ms.subservice: msbuild
1818
---
1919
# MSB3086
2020

21-
The full error text is similar to the following example:
21+
This article describes the MSB3086 error code.
2222

23-
```output
24-
MSB3086: Task could not find 'tool' using the SdkToolsPath 'path' or the registry key 'key'. Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed
25-
```
23+
## Message text
2624

27-
This error occurs when a tool could not be found on the paths searched. Try reinstalling the Windows SDK.
25+
`Task could not find 'tool' using the SdkToolsPath 'path' or the registry key 'key'. Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed`
26+
27+
## Description
28+
29+
This error occurs when a tool could not be found on the paths searched.
30+
31+
## Resolution
32+
33+
Try reinstalling the Windows SDK.
34+
35+
## Applies to
36+
37+
All versions of MSBuild

docs/msbuild/errors/msb3101.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "MSB3101: Could not write state file 'filename'."
3-
description: "This error occurs when MSBuild failed to write an internal file during a build."
4-
ms.date: "08/15/2022"
2+
title: MSB3101 diagnostic code
3+
description: Learn about the possible causes of the MSB3101 build error and get troubleshooting tips.
4+
ms.date: 04/14/2025
55
ms.topic: "error-reference"
66
f1_keywords:
77
- MSB3101
@@ -18,12 +18,27 @@ ms.subservice: msbuild
1818
---
1919
# MSB3101
2020

21+
This article describes the MSB3101 error code.
22+
23+
## Message text
24+
25+
`Could not write state file 'filename'.`
26+
27+
## Description
28+
2129
This error occurs when MSBuild failed to write an internal file during a build. This error is not necessarily a blocking error, as MSBuild can sometimes recover from it and continue processing the build.
2230

23-
The message resembles the following, but this text is followed by additional information from the operating system:
31+
## Resolution
32+
33+
The standard output message text is followed by additional information from the operating system. Look to the additional information provided to determine the cause of the problem.
34+
35+
Typical issues include:
36+
37+
- The path is too long.
38+
- Permission is denied to the folder.
39+
- A file is locked by another process.
40+
- The disk is full.
2441

25-
```output
26-
MSB3101: Could not write state file 'filename'
27-
```
42+
## Applies to
2843

29-
Look to the additional information provided by the operating system to determine the cause of the problem. Typical issues include: the path was too long, permission was denied to the folder, a file was locked by another process, or the disk was full.
44+
All versions of MSBuild

0 commit comments

Comments
 (0)