Skip to content

Commit 410369f

Browse files
committed
update
1 parent f8c2fda commit 410369f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/msbuild/errors/msb1004.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ This errors occurs when the MSBuild command line contains a `-targets` or `-t` s
4242

4343
## Resolution
4444

45-
Provide the target name that you want to build. Check for typos in the command-line syntax, and make sure that the desired target name is given after the `-targets` or `-t` switch. If you're constructing the MSBuild command line using an environment variable or shell script, check that the environment variable exists, has a value, and is referenced using the correct shell-specific syntax, and verify any shell expansions, and the correct syntax of escape characters.
45+
Provide the target name that you want to build by putting it just after the `-t` or `-targets` switch. If that isn't the problem, check for typos in the command-line syntax, such as mismatched quotes or unintended shell escape characters. If you're constructing the MSBuild command line using an environment variable or shell script, check that the environment variable exists, has a value, and is referenced using the correct shell-specific syntax.
4646

47-
Possible targets might be defined in the project file itself. These appear as a `Target Name="MyTarget"` element in the project file. Or, you can specify one of the system-provided target files. These are files with the `.targets` extension such as `Microsoft.Common.targets`, `Microsoft.Common.CSharp.targets`, and so on in the MSBuild installation folders. If you're using a project SDK (for example, you used the `Sdk="Microsoft.Net.Sdk"` attribute on the `Project` node in the project file), these system `.targets` files are imported implicitly.
47+
Possible targets might be defined in the project file itself. These appear with syntax like `<Target Name="MyTarget">`, which begins the specification of a target in the project file. Or, you can specify a target from of the system-provided target files. These are files, typically with the `.targets` extension, such as `Microsoft.Common.targets`, `Microsoft.Common.CSharp.targets`, and so on in the MSBuild installation folders. If you're using a project SDK (for example, you used the `Sdk="Microsoft.Net.Sdk"` attribute on the `Project` node in the project file), these system `.targets` files are imported implicitly.
4848

49-
If you don't know what the name of your desired target is, or what target you want to build, you can get a list of available targets by issuing the command `MSBuild -targets`.
49+
If you don't know what the name of your desired target is, or what target you want to build, try issuing the command `MSBuild.exe -targets`, which generates a list of available targets, but doesn't run the build.
5050

5151
For more information, see [MSBuild targets](../msbuild-targets.md).
5252

0 commit comments

Comments
 (0)