首页 > 解决方案 > MSBUILD : 错误 MSB1008: 只能指定一个项目。开关:554/185513.log;verbosity=diagnostic\

问题描述

你好我得到一个构建错误我尝试了很多,我试过这个

还有但没有用你能帮我吗这是我的bat文件代码

set rootPath=C:\Users\rmrud\source\Workspaces\Workspace2
set basePath3=%rootPath%\HAL9
set filename=%rootPath%\buildLog\%yyyy%%mm%%dd%%hh%%mm%%ss%.log
set csproj=%basePath3%\v3_07\指示せん印刷\指示せん印刷\指示せん印刷.csproj
set msbuild_new=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe\
mkdir %rootPath%\buildLog

C:
cd C:\
cd %basePath3%
tf get
if errorlevel 1 goto ON_EXIT

dotnet build 
%csproj%/t:%buildCmd%/p:Configuration=\\Release\fl\flp:logfile=%filename%;verbosity=diagnostic\ 
if errorlevel 1 goto ON_EXIT

如您所见,我在换行符中添加 \ this 仍然存在此问题和错误。

适用于 .NET 的 Microsoft (R) Build Engine 版本 16.8.3+39993bd9d 版权所有 (C) Microsoft Corporation。版权所有。

MSBUILD : 错误 MSB1008: 只能指定一个项目。开关:554/185513.log;verbosity=diagnostic\

我仍然有这个错误。我怎样才能摆脱这个?提前致谢

标签: .netbatch-filemsbuild

解决方案


推荐阅读