简体   繁体   English

MSBUILD .NET v4 teamcity

[英]MSBUILD .NET v4 teamcity

I have installed TeamCity Professional 8.1.3 (build 30101) onto a clean box and I am trying to run a new build. 我已经将TeamCity Professional 8.1.3(build 30101)安装到一个干净的盒子上,我正在尝试运行一个新的版本。 I have copied over the msbuild tools from my local dev machine to the new server and placed them in the x86 folder. 我已经将msbuild工具从我的本地开发机器复制到新服务器并将它们放在x86文件夹中。 I have also installed the IIS web role, .net feature, registered IIS from the cmd line, and installed MSBUILD tools 2013. For some reason, I still am unable to compile anything. 我还安装了IIS Web角色,.net功能,从cmd行注册了IIS,并安装了MSBUILD工具2013.出于某种原因,我仍然无法编译任何东西。 I get the following error 我收到以下错误

SGEN An attempt was made to load an assembly with an incorrect format: C:\\Windows\\Microsoft.Net\\assembly\\GAC_64\\System.Data\\v4.0_4.0.0.0__b77a5c561934e089\\System.Data.dll. SGEN尝试加载格式不正确的程序集:C:\\ Windows \\ Microsoft.Net \\ assembly \\ GAC_64 \\ System.Data \\ v4.0_4.0.0.0__b77a5c561934e089 \\ System.Data.dll。

Is anyone familiar with this error? 有人熟悉这个错误吗? I am trying to build an app in .NET v4 using msbuild tools v4. 我正在尝试使用msbuild工具v4在.NET v4中构建一个应用程序。

I was getting this error building a project that targeted .NET Framework 4.5.1. 我在构建针对.NET Framework 4.5.1的项目时遇到此错误。 I resolved the issue by installing Microsoft .NET Framework 4.5.1 Developer Pack 我通过安装Microsoft .NET Framework 4.5.1 Developer Pack解决了这个问题

You can get the SDK (aka Targeting Pack, aks Developer Pack) for other versions you may want to target at .NET SDKs and Downloads 您可以获得SDK(也称为Targeting Pack,aks Developer Pack)以用于您可能希望在.NET SDK和下载中定位的其他版本

The solution was installing VS2012 on my build machine. 解决方案是在我的构建机器上安装VS2012。 This may not be the most efficient, but it beats installing small packages and chasing around things that need to be registers in the GAC. 这可能不是最有效的,但它胜过安装小包并追逐需要在GAC中注册的东西。

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

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