TeamCity构建步骤 - 在MSBuild中失败

时间:2017-06-13 21:02:03

标签: .net msbuild teamcity database-project

解决方案在我的计算机上成功构建,但在构建服务器上不成功。有项目的解决方案

Projects within solution

这是MSBuild输出

[13:42:17][Step 2/5] MSBuild output [13:42:17][MSBuild output] Focal.Business.Library -> D:\BuildAgent\work\9d2a77191c8abcc1\Focal.Business.Library\bin\Release\Focal.Business.Library.exe [13:42:17][MSBuild output] Copying file from "obj\Release\Focal.Business.Library.pdb" to "bin\Release\Focal.Business.Library.pdb". [13:42:17][MSBuild output] Done Building Project "D:\BuildAgent\work\9d2a77191c8abcc1\Focal.Business.Library\Focal.Business.Library.csproj" (default targets). [13:42:17][MSBuild output] Project "D:\BuildAgent\work\9d2a77191c8abcc1\Focal.API.sln" (2) is building "D:\BuildAgent\work\9d2a77191c8abcc1\Focal\Focal.sqlproj" (11) on node 1 (default targets). [13:42:17][MSBuild output] CoreCompile: [13:42:17][MSBuild output] C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll" /debug:pdbonly /optimize+ /out:obj\Release\Focal.dll /subsystemversion:6.00 /target:library /warnaserror- /utf8output "D:\BuildAgent\temp\buildTmp\.NETFramework,Version=v4.5.SqlClrAttributes.cs" [13:42:17][MSBuild output] SqlBuild: [13:42:17][MSBuild output] Creating a model to represent the project... [13:42:17][MSBuild output] Done Building Project "D:\BuildAgent\work\9d2a77191c8abcc1\Focal\Focal.sqlproj" (default targets) -- FAILED. [13:42:17][MSBuild output] Done Building Project "D:\BuildAgent\work\9d2a77191c8abcc1\Focal.API.sln" (default targets) -- FAILED. [13:42:17][MSBuild output] Done Building Project "D:\BuildAgent\work\9d2a77191c8abcc1\Focal.API.sln.teamcity" (TeamCity_Generated_Build target(s)) -- FAILED. [13:42:17][MSBuild output] [13:42:17][MSBuild output] Build FAILED.

错误不太具描述性。我需要帮助。

1 个答案:

答案 0 :(得分:0)

错误消息是您的SqlProj无法编译

var state = new BookMeetingRoomForm(); var entities = new List<EntityRecommendation>(result.Entities); if (entities.Count > 0) { FillEntityNewBookFromLuis(result, out state); entities = null; } var formDialog = new FormDialog<BookMeetingRoomForm>( state, BookMeetingRoomForm.BuildForm, FormOptions.PromptInStart, entities); context.Call(formDialog, Callback); 导致这种情况发生的原因有几个,但首先要检查的是构建服务器上是否安装了Sql Server数据工具(SSDT)。

如果他们是,那么检查你的&#34; Debug&#34;之间的任何差异。和&#34;发布&#34; Visual Studio配置管理器中的配置