在Server 2012上使用teamcity在VS2013解决方案上进行构建。
我在解决方案中添加了一个codedUITest项目。
由于某种原因,构建代理A工作,而B和C不工作。
我找不到服务器之间的任何差异。安装完全相同,文件都显示在那里。
我收到以下错误。
CoreCompile 中信建投 CodedUITest1.cs(7,40):错误CS0234:命名空间“Microsoft.VisualStudio.TestTools”中不存在类型或命名空间名称“UITesting”(您是否缺少程序集引用?) CodedUITest1.cs(9,40):错误CS0234:命名空间“Microsoft.VisualStudio.TestTools”中不存在类型或命名空间名称“UITest”(您是否缺少程序集引用?) CodedUITest1.cs(10,51):错误CS0234:命名空间“Microsoft.VisualStudio.TestTools”中不存在类型或命名空间名称“UITesting”(您是否缺少程序集引用?) CodedUITest1.cs(18,6):错误CS0616:'CodedUITest'不是属性类 项目CodedUITest \ CodedUITest.csproj失败。
在代理A上生成它(WORKS !!并包含引用)
C:\ Program Files(x86)\ MSBuild \ 12.0 \ bin \ amd64 \ Csc.exe / noconfig / nowarn:1701,1702 / nostdlib + / errorreport:prompt / warn:4 / define:DEBUG; TRACE / highentropyva + / reference:“C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.QualityTools.CodedUITestFramework.dll” / reference:“C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll” / reference:“C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.TestTools.UITest.Common.dll” / reference:“C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.TestTools.UITest.Extension.dll” / reference:“C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.TestTools.UITesting.dll”/ reference:“C:\ Program Files(x86)\ Reference Assemblies \微软\ Framework.NETFramework \ V4.5.1 \ mscorlib.dll中” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Core.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Data.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Drawing.dll”/ reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Windows.Forms.dll“/ reference:”C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ UiaComWrapper.dll“/ reference:”C: \ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ WindowsBase.dll“/ debug + / debug:full / filealign:512 / optimize-/out:obj\Debug•CodedUITest.dll/ subsystemversion: 6.00 / target:library / utf8output CodedUITest1.cs Properties \ AssemblyInfo.cs“D:\ BuildAgent \ temp \ buildTmp.NETFramework,Version = v4.5.1.AssemblyAttributes.cs”
在其他人身上产生(不工作。注意失踪依赖.BOOO!)
C:\ Program Files(x86)\ MSBuild \ 12.0 \ bin \ amd64 \ Csc.exe / noconfig / nowarn:1701,1702 / nostdlib + / errorreport:prompt / warn:4 / define:DEBUG; TRACE / highentropyva + / reference:“C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PublicAssemblies \ Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ mscorlib.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Core.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Data.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Drawing.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ System.Windows.Forms.dll” / reference:“C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.5.1 \ WindowsBase.dll” / debug + / debug:full / filealign:512 / optimize-/out:obj\Debug•CodedUITest.dll/subsystemversion:6.00 / target:library / utf8output CodedUITest1.cs Properties \ AssemblyInfo.cs“D:\ BuildAgent \ temp \ buildTmp .NETFramework,版本= v4.5.1.AssemblyAttributes.cs“
有什么想法吗?
谢谢!