I am working on converting the definition of the tfs 2013 assembly, we originally used tfs 2008. I have a new server installed with TFS2013 installed and am working on setting up Build for 2013 xaml (workflow). However, I encountered an error when my TFS built in release mode for Any Cpu configuration, but it is fine when I use debug mode. I tried looking for a lot of articles and could not find any solution, kindly help me here. This is normal on my local machine, but only happens on the server.
Project and details
1) project -.net framework 4.0
2) The default configuration is "Any Cpu"
3) TFS 2013 server - 64 bit, Windows 2008 r2 server
Build definition
Configuration: any CPU | Release
MsBuildPlatform: x86
Error : SGEN: An attempt was made to load an assembly with the wrong format: C: \ Windows \ Microsoft.Net \ assembly \ GAC_64 \ System.Data \ v4.0_4.0.0.0__b77a5c561934e089 \ System.Data.dll.
Attention : C: \ Program Files (x86) \ MSBuild \ 12.0 \ bin \ Microsoft.Common.CurrentVersion.targets (990): link assemblies for the ".NETFramework, Version = v4.0" framework were not found. To solve this problem, install the SDK or Targeting Pack for this version of the framework or migrate the application to the version of the framework for which the SDK or Targeting Pack is installed. Note that assemblies will be resolved from the global assembly cache (GAC) and will be used instead of referenced assemblies. Therefore, your assembly may not be properly configured for the framework you are planning.
I installed Windos 8 SDK (only for tools) and Windows framework 4 x64 as x86 version does not work
In the folder C: \ Program Files \ Microsoft SDKs \ Windows, the folder v7.0 is installed C: \ Program Files (x86) \ Microsoft SDK \ Windows has the folder v8.1A
where since my local machine has many versions inside the windows folder in the above path
List of related articles I checked but could not find a solution
http://seravy.wordpress.com/2012/10/25/installing-net-4-5-and-not-windows-sdk-8/
http://blogs.msdn.com/b/windowssdk/archive/2009/09/16/windows-7-sdk-setup-common-installation-issues-and-fixes.aspx
Running MSBuild Cannot Read SDKToolsPath
http://dukelupus.wordpress.com/2008/02/05/task-failed-because-sgenexe-was-not-found-solution/
How to fix Visual Studio compilation error, "mismatch between processor architecture"?
Creating TFS 2010. Creating 4.0 XmlSerializers DLL for .Net 3.5 Application
So what should I do to fix this error?