-t:go 标志在 MSBuild 中有什么作用?
What does the -t:go flag do in MSBuild?
我找不到这里提到的:https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019
但是这里用的是:https://docs.microsoft.com/en-us/visualstudio/msbuild/obtaining-build-logs-with-msbuild?view=vs-2019
-t
是 -target
开关的缩写形式,它告诉 MSBuild 要构建的目标。
摘自Documentation:
Switch Short Form Description
─────────────────────────────────────────────────────────────────────────────
-target:targets -t:targets Build the specified targets in
the project. Specify each target
separately, or use a semicolon or
comma to separate multiple targets,
as the following example shows:
因此msbuild MyProject.proj -t:go
将在项目MyProject.proj
中调用go
目标。
我找不到这里提到的:https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019
但是这里用的是:https://docs.microsoft.com/en-us/visualstudio/msbuild/obtaining-build-logs-with-msbuild?view=vs-2019
-t
是 -target
开关的缩写形式,它告诉 MSBuild 要构建的目标。
摘自Documentation:
Switch Short Form Description ───────────────────────────────────────────────────────────────────────────── -target:targets -t:targets Build the specified targets in the project. Specify each target separately, or use a semicolon or comma to separate multiple targets, as the following example shows:
因此msbuild MyProject.proj -t:go
将在项目MyProject.proj
中调用go
目标。