TFS 2013 - 构建:ASP.Net 4.5.1网站,出现以下错误:
所有项目和网站最初都使用Unity 1.0.0.0,现在已经升级到4.5.2。以上的错误中,MyProj1是参考Unity的,我也将它升级到了3.5.1。
请阅读此链接:https://unity.codeplex.com/workitem/12756,工作服务器已经添加了更新后的4.5.2版本。
因此,我降级到了4.5.1,但仍然出现错误。
问题的解决方案如下:
在升级过程中,是否需要进行Web.config更改,除了TargetFramework设置之外?
warning MSB3268: The primary reference "C:\Builds\2\MyProj\Web1_Main\bin\MyProj1.dll"
could not be resolved because it has an indirect dependency on the framework assembly
"System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which
could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.5.1". To resolve this problem, either remove the reference
"C:\Builds\2\MyProj\Web1_Main\bin\MyProj1.dll" or retarget your application to a framework
version which contains "System.Runtime, Version=4.0.10.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a".
所有项目和网站最初都使用Unity 1.0.0.0,现在已经升级到4.5.2。以上的错误中,MyProj1是参考Unity的,我也将它升级到了3.5.1。
请阅读此链接:https://unity.codeplex.com/workitem/12756,工作服务器已经添加了更新后的4.5.2版本。
因此,我降级到了4.5.1,但仍然出现错误。
问题的解决方案如下:
在Visual Studio 2013中本地构建解决方案没有问题。
单独的类库项目通过TFS构建没有问题,但当将MyProj作为网站的引用时,则会失败。
在升级过程中,是否需要进行Web.config更改,除了TargetFramework设置之外?