asp.net - Dependency on the framework assembly "System.Runtime, Version=4.0.10.0," which could not be resolved in the currently targeted framework -
tfs 2013 - build: asp.net 4.5.1 website error:
warning msb3268: primary reference "c:\builds\2\myproj\web1_main\bin\myproj1.dll" not resolved because has indirect dependency on framework assembly "system.runtime, version=4.0.10.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a" not resolved in targeted framework. ".netframework,version=v4.5.1". resolve problem, either remove reference "c:\builds\2\myproj\web1_main\bin\myproj1.dll" or retarget application framework version contains "system.runtime, version=4.0.10.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a".
all projects , site 4.0 using unity 1.0.0.0. upgraded 4.5.2. myproj1 in error above referencing unity , upgraded 3.5.1 well.
read this: https://unity.codeplex.com/workitem/12756 build server have updated 4.5.2 pointed in workaround.
so downgraded 4.5.1 still getting error.
solution builds fine locally via visual studio 2013.
the stand lone class libraries project build in tfs fine when myproj added reference website, that's when fails.
any ideas?
do need web.config changes other tragetframework settign while upgrading?
actually sorry don't think "assemblybinding" help. seems known bug. has not been resolved. using unity 3.5 can target .net 4.5.1 not 4.5.2. 1 alternative re-target .net 4.5.1 , see if problem goes away, if that's option.
p.s. can seek .net framework 4.5.2 developer pack. have mentioned did not work.
asp.net .net unity-container tfsbuild .net-4.5
No comments:
Post a Comment