*在OBJ目录.dll.licenses文件不TeamCity的与创造的MSBuild [英] *.dll.licenses file in obj directory not created with msbuild in TeamCity

查看:410
本文介绍了*在OBJ目录.dll.licenses文件不TeamCity的与创造的MSBuild的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在升级从VS2012我们TeamCity的项目,VS2015,我遇到了我们的编译MVC应用程序中的一个问题。

I am working on upgrading our TeamCity projects from VS2012 to VS2015 and I am running into an issue compiling our MVC application.

旧的MSBuild(v4.0.30319.34209)生成 MyApplication.Web.Mvc.dll.licenses 名为obj的目录这显然需要建设一个文件,但我们不知道是什么文件实际使用。

Old MSBuild (v4.0.30319.34209) generates a file in the obj directory called MyApplication.Web.Mvc.dll.licenses which apparently is required for building, but we have no idea what the file is actually used for.

新的MSBuild(v14.0.23107.0)不会创建此 MyApplication.Web.Mvc.dll.licenses 文件,所以构建失败,出现以下错误:

New MSBuild (v14.0.23107.0) does not create this MyApplication.Web.Mvc.dll.licenses file, so the build fails with the following error:

CSC error CS1566: Error reading resource 'MyApplication.Web.Mvc.dll.licenses' 
-- 'Could not find file 'C:\BuildAgent\work\58ddf5f1234d8c8a\application\MyApplication\MyApplication.Web.Mvc\obj\Release\MyApplication.Web.Mvc.dll.licenses'.' 

我一直在通过手动的CMD机器上运行的版本,并且只要使用旧的MSBuild运行的版本,只是没有新的 dll.licenses 文件被创建之一。

该文件被运行VS2015开发机创建的,但不是的TeamCity构建服务器上。因此,在我看来,别的东西是过时的?

The file gets created on the development machines running VS2015, but not on the Teamcity build server. So it seems to me that something else is out of date?

推荐答案

有点经过google搜索,我偶然发现的this线程MSDN

After a bit more googling, I stumbled upon this thread on MSDN.

解决方案建议这里是安装的Windows SDK 10 。我们这样做我们的TeamCity构建服务器上使用默认安装选项运行Windows Server 2012 R2,并在重新启动后,我们的建设是再次合作。

The solution suggested here is to install the Windows 10 SDK. We did this on our TeamCity build server running Windows Server 2012 R2 using the default installation options, and after a reboot, our build was working again.

希望这有助于:)

这篇关于*在OBJ目录.dll.licenses文件不TeamCity的与创造的MSBuild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆