简体   繁体   English

TFS自动生成系统问题

[英]TFS Automated Build System issue

I am preparing a course for TFS 2015, and I've got almost everything, except the Automated Build part, which is giving me some problems. 我正在为TFS 2015准备一门课程,除了Automated Build部分(这给我带来了一些问题)之外,我几乎拥有所有一切。 I'm currently having a huge issue when trying to build an example project. 尝试构建示例项目时,我目前遇到一个大问题。 That project has one html file and a few JS ones, just for testing things out. 该项目有一个html文件和一些JS文件,仅用于测试。

Then, I prepared an agent on-premises that connects to my Visual Studio Online account, which is properly bound to that TFS instance. 然后,我准备了一个本地代理,该代理连接到我的Visual Studio Online帐户,该帐户已正确绑定到该TFS实例。 My build definition is simple: the default one, with the directory set to my project's directory ($testing). 我的构建定义很简单:默认定义,目录设置为项目的目录($ testing)。

Everything should run fine, but I'm having the following error. 一切都应该运行正常,但出现以下错误。 It was with some parts in spanish, but I translated them for your understanding: 它的某些部分是西班牙语,但为了您的理解,我翻译了它们:

2015-10-07T18:27:23.2436618Z Executing the powershell script: C:\\agent\\tasks\\VSBuild\\1.0.15\\VSBuild.ps1 2015-10-07T18:27:23.2436618Z执行Powershell脚本:C:\\ agent \\ tasks \\ VSBuild \\ 1.0.15 \\ VSBuild.ps1

 2015-10-07T18:27:25.0057796Z ##[error] Cannot find property DirectoryName. 2015-10-07T18:27:25.0227790ZC:\\agent\\agent\\worker\\tools\\NuGet.exe restore "C:\\agent\\_work\\3\\s" -NonInteractive 2015-10-07T18:27:25.2377919Z ##[error]Cannot locate a solution file. 2015-10-07T18:27:25.2617935Z ##[error]Unexpected exit code 1 returned from tool NuGet.exe 2015-10-07T18:27:25.2727677ZC:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe "C:\\agent\\_work\\3\\s" /nologo /m 

/nr:false /fl /flp:"logfile=C:\\agent_work\\3\\s.log" /dl:CentralLogger,"C:\\agent\\agent\\worker\\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\\agent\\agent\\worker\\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:platform="any cpu" /p:configuration="debug" /p:VisualStudioVersion="14.0" / nr:false / fl / flp:“日志文件= C:\\ agent_work \\ 3 \\ s.log” /dl:CentralLogger,"C:\\agent\\agent\\worker\\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll“ * ForwardingLogger,“ C:\\ agent \\ agent \\ worker \\ Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll” / p:platform =“ any cpu” / p:configuration =“ debug” /p:VisualStudioVersion="14.0“

 2015-10-07T18:27:25.4188021Z MSBUILD : error MSB1009: Project's file doesn't exist. 2015-10-07T18:27:25.4188021Z Modificador: C:\\agent\\_work\\3\\s 2015-10-07T18:27:25.4228024Z ##[error]Unexpected exit code received from msbuild.exe: 1 

What's going on with my build definition? 我的构建定义怎么了? I should have this ready soon, but I don't find any info about these errors... Thank you in advance! 我应该很快就准备好了,但是我找不到关于这些错误的任何信息...预先谢谢!

You're actually working with TFS nNext build (adjust from the VSBuild.ps1). 您实际上正在使用TFS nNext构建(从VSBuild.ps1进行调整)。

And I can reproduce your above error when I specify the Solution field in the Visual Studio Build step with a folder which has no solution or project to build. 当我在Visual Studio Build步骤中使用没有要构建的解决方案或项目的文件夹指定“ 解决方案”字段时,可以重现以上错误。 So, to resolve it, explicitly specify one .sln or .csproj file. 因此,要解决该问题,请明确指定一个.sln或.csproj文件。 Like: 喜欢:

在此处输入图片说明

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

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