TFS 2013 - Build: ASP.Net 4.5.1 website I get this error:
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".
All projects and the site were 4.0 using Unity 1.0.0.0. I updated it to 4.5.2. In addition, MyProj1 in the above error refers to Unity, and I updated it to 3.5.1.
Read the following: https://unity.codeplex.com/workitem/12756 The build server already has updated 4.5.2, indicated in a workaround.
So, I downgraded to 4.5.1, but still get the error.
The solution is built perfectly locally using Visual studio 2013.
Individual class library projects are embedded in TFS, but when MyProj is added as a link to my site, this happens when it fails.
Any ideas?
Do I need any changes to web.config other than the TragetFramework attributes when updating?
gbs
source share