本文介绍了MSBUILD:错误 MSB1008:只能指定一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么我会收到以下构建错误?
Why am I getting the following Build error?
C:WINDOWSMicrosoft.NETFrameworkv3.5msbuild.exe C:CodeEduBenesysNETEduBenesysNETEduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\BSIIS3c$DATAWEBSITESenesys.netenesys.netTotalEducationTest" /p:InstallUrl="https://www.benesys.net/benesys.net/TotalEducationTest/" /p:ApplicationVersion=1.0.1.198 /p:ProductName="Total Education TEST" /p:PublisherName="BeneSys, Inc." /p:UpdateRequired="True" /p:MinimumRequiredVersion=1.0.1.198
Microsoft (R) Build Engine Version 3.5.30729.1
[Microsoft .NET Framework, Version 2.0.50727.3603]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
MSBUILD : error MSB1008: Only one project can be specified.
Switch: Education
For switch syntax, type "MSBuild /help"
我没有看到如何指定第二个项目.
它是否存储在某个项目文件中?
I do not see how a second project is being specified.
Is it stored in a project file somewhere?
推荐答案
解决方案
删除/p:PublishDir 设置周围的引号
SOLUTION
Remove the Quotes around the /p:PublishDir setting
即
而不是引号
/p:PublishDir="\BSIIS3c$DATAWEBSITESenesys.netenesys.netTotalEducationTest"
不使用引号
/p:PublishDir=\BSIIS3c$DATAWEBSITESenesys.netenesys.netTotalEducationTest
很抱歉我没有早点发布我的发现.我实际上不得不再次研究以查看需要更改的内容.谁会想到删除引号会起作用?我在查看同事为另一个解决方案构建时发现了这一点,并注意到它没有引号.
I am sorry I did not post my finding sooner. I actually had to research again to see what needed to be changed. Who would have thought removing quotes would have worked? I discovered this when viewing a coworkers build for another solution and noticed it did not have quotes.
这篇关于MSBUILD:错误 MSB1008:只能指定一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!