VS2010. All projects in solution target .NET Framework version 3.5
. For building on build server we use MSBuild
with tools version 4.0
. ProjName.Xmlserializers.dll
assembly is generated after build, but:
- on my machine it references System.Xml version
2.0
; - on build server it references System.Xml version
4.0
; as a result"This assembly is built by a runtime newer than the currently loaded runtime"
error is thrown
I cannot figure why MSBuild
on build server generates Xmlserializers.dll
with wrong version. What are possible reasons?