简体   繁体   English

使用TeamCity进行构建:无法启动MSBuild。 请指定要使用的nuspec或项目文件

[英]Build using TeamCity: Failed to start MSBuild; please specify a nuspec or project file to use

I'm trying to build a website in Teamcity, but the first build step "starting MSBuild" is failing.It seems that the command is trying to install nuget, but it is complaining that there is no nuspec or project file specified . 我正在尝试在Teamcity中构建网站,但是“启动MSBuild”的第一个构建步骤失败了。似乎该命令正在尝试安装nuget,但它抱怨没有指定nuspec或项目文件

I have a "nuget.targets" file and the code compiles fine outside of teamcity , so I think it must be a setting I am missing, and not a file I actually need to add but maybe I do need to add a nuspec or project file? 我有一个“ nuget.targets”文件,并且代码在teamcity之外可以正常编译,因此我认为它一定是我所缺少的设置,而不是我实际上需要添加的文件,但也许我确实需要添加nuspec或项目文件? Assuming I do, how would I go about doing that? 假设我这样做了,我将如何去做呢?

[Exec] C:\TeamCity\buildAgent\work\61cf1fbc18b86c6f\.nuget\NuGet.targets
(109, 9): Please specify a nuspec or project file to use.

I am completely new to Teamcity (~3hrs); 我完全不熟悉Teamcity(〜3小时); how do I resolve this problem? 我该如何解决这个问题?

If a build fails or behaves differntly in TeamCity than locally, then it is recommended to run the build in the working folder on agent machine under the same user that the agent is running. 如果构建失败或在TeamCity中的行为与本地不同,则建议在与代理运行相同的用户下在代理计算机上的工作文件夹中运行该构建。 Find more details here . 在此处查找更多详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM