Skip to content

Commit c50d783

Browse files
committed
Impove substituted strings in error messages and add links
1 parent 9d24cb4 commit c50d783

File tree

10 files changed

+19
-17
lines changed

10 files changed

+19
-17
lines changed

docs/msbuild/errors/msb3025.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB3025 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB3025: The source file 'value' is actually a directory. The 'Copy' task does not support copying directories.`
30+
`MSB3025: The source file 'path' is actually a directory. The 'Copy' task does not support copying directories.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB3025: The source file "{0}" is actually a directory. The "Copy" task does not support copying directories. -->
3333

docs/msbuild/errors/msb3052.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB3052 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB3052: The parameter to the compiler is invalid, ''value''value'' will be ignored.`
30+
`MSB3052: The parameter to the compiler is invalid, ''switch''value'' will be ignored.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB3052: The parameter to the compiler is invalid, '{0}{1}' will be ignored. -->
3333

docs/msbuild/errors/msb3088.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB3088 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB3088: Could not read state file 'filename'.`
30+
`MSB3088: Could not read state file 'file-path'.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB3088: Could not read state file "{0}". {1} -->
3333

docs/msbuild/errors/msb3107.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB3107 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB3107: The specified project reference metadata for the reference 'value' is missing or has an invalid value:`
30+
`MSB3107: The specified project reference metadata for the reference 'referenced-project-name' is missing or has an invalid value:`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB3107: The specified project reference metadata for the reference "{0}" is missing or has an invalid value: {1} -->
3333

docs/msbuild/errors/msb3217.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB3217 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB3217: Cannot register assembly 'value'.`
30+
`MSB3217: Cannot register assembly 'assembly-name'.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB3217: Cannot register assembly "{0}". {1} -->
3333

@@ -37,11 +37,11 @@ This article describes the MSB3217 error code.
3737
-->
3838
## Description
3939

40-
This error occurs in the [RegisterAssembly task](../registerassembly-task.md) when, for any reason, the assembly could not be registered as a COM object. The error is followed by information from Windows with more details about the issue.
40+
This error occurs in the [RegisterAssembly task](../registerassembly-task.md) when, for any reason, the assembly could not be registered as a COM object. The error is followed by information from Windows with more details about the issue. See [Registering assemblies with COM](/dotnet/framework/interop/registering-assemblies-with-com).
4141

4242
## Resolution
4343

44-
This error occurs for a wide variety of causes that result in a failure to register an assembly. Registering a COM object requires that the account that runs MSBuild has admin permissions on the machine.
44+
This error occurs for a wide variety of causes that result in a failure to register an assembly. Registering a COM object requires that the account that runs MSBuild has admin permissions on the machine.
4545

4646
<!-- :::editable-content-end::: -->
4747
<!-- :::ErrorDefinitionDescription-end::: -->

docs/msbuild/errors/msb3331.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB3331 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB3331: Unable to apply publish properties for item 'value'.`
30+
`MSB3331: Unable to apply publish properties for item 'item-name'.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB3331: Unable to apply publish properties for item "{0}". -->
3333

docs/msbuild/errors/msb4075.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB4075 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB4075: The project file 'value' must be opened in the Visual Studio IDE and converted to the latest version before it can be built by MSBuild.`
30+
`MSB4075: The project file 'file-path' must be opened in the Visual Studio IDE and converted to the latest version before it can be built by MSBuild.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB4075: The project file "{0}" must be opened in the Visual Studio IDE and converted to the latest version before it can be built by MSBuild. -->
3333

docs/msbuild/errors/msb4244.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ This article describes the MSB4244 error code.
3939

4040
An SDK resolver assembly is an assembly that is loaded when an SDK is referenced in a project file. The purpose of the SDK resolver is to find and load the appropriate SDK. If this error occurs, it means that the resolver assembly couldn't be located or loaded.
4141

42+
For general information on SDKs in MSBuild, see [Use MSBuild project SDKs](../how-to-use-project-sdk.md).
43+
4244
## Resolution
4345

4446
This error should never occur if you're using `dotnet build` or Visual Studio to build, but it could occur in a custom tool that uses the MSBuild API to perform a build and doesn't locate the right MSBuild installation files. The recommended way to locate MSBuild is to use <xref:Microsoft.Build.Locator.MSBuildLocator>. For detailed instructions, see [Find and use MSBuild versions](../find-and-use-msbuild-versions.md).

docs/msbuild/errors/msb4252.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ This article describes the MSB4252 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB4252: Project 'value' with global properties
31-
('value')
32-
is building project 'value' with global properties
33-
('value')
34-
with the ('value') target(s) but the build result for the built project is not in the engine cache. In isolated builds this could mean one of the following:
35-
- the reference was called with a target which is not specified in the ProjectReferenceTargets item in project 'value'
30+
`MSB4252: Project 'project-name' with global properties
31+
('properties')
32+
is building project 'project-name' with global properties
33+
('properties')
34+
with the ('target-name') target(s) but the build result for the built project is not in the engine cache. In isolated builds this could mean one of the following:
35+
- the reference was called with a target which is not specified in the ProjectReferenceTargets item in project 'project-name'
3636
- the reference was called with global properties that do not match the static graph inferred nodes
37-
- the reference was not explicitly specified as a ProjectReference item in project 'value'`
37+
- the reference was not explicitly specified as a ProjectReference item in project 'project-name'`
3838
<!-- :::editable-content-end::: -->
3939
<!-- MSB4252: Project "{0}" with global properties
4040
({1})

docs/msbuild/errors/msb5023.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This article describes the MSB5023 error code.
2727
## Message text
2828

2929
<!-- :::editable-content name="messageText"::: -->
30-
`MSB5023: Error parsing the nested project section in solution file. A project with the GUID 'value' is listed as being nested under project 'value', but does not exist in the solution.`
30+
`MSB5023: Error parsing the nested project section in solution file. A project with the GUID 'guid' is listed as being nested under project 'project-name', but does not exist in the solution.`
3131
<!-- :::editable-content-end::: -->
3232
<!-- MSB5023: Error parsing the nested project section in solution file. A project with the GUID "{0}" is listed as being nested under project "{1}", but does not exist in the solution. -->
3333

0 commit comments

Comments
 (0)