MSBUILD:错误MSB1008:只能指定一个项目 [英] MSBUILD : error MSB1008: Only one project can be specified
本文介绍了MSBUILD:错误MSB1008:只能指定一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么会出现以下构建错误?
Why am I getting the following Build error?
C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe C:\Code\EduBenesysNET\EduBenesysNET\EduBenesysNET.vbproj /t:publish /p:Configuration=Release /p:Platform=AnyCPU /v:detailed /p:PublishDir="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\" /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="\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\"
不使用引号
/p:PublishDir=\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\
对不起,我没有尽快发布我的发现.实际上,我不得不再次进行研究,以了解需要更改的内容.谁会想到删除引号会起作用?我在查看其他解决方案的同事构建时发现了这一点,并注意到它没有引号.
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:只能指定一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文