I have a Visual Studio solution I'm trying to build. One of the projects in the solution is for resource files for language translations. All projects are set to the 3.5 framework. The build is completing sucessully with TeamCity using msbuild/tools version 3.5. The issue is that the main project dll is compiled to version 2.0.50727 as expected, however, the language-specific dlls generated by that same project are being compiled against the 4.0 runtime. All other projects have the 2.0 runtime as well.
This is a problem since this is a SharePoint application and I'm constrained to the 2.0 runtime. Has anyone else come across this? I'm stumped on why TeamCity is creating the dlls with two different versions. Doing the build within Visual Studio creates dlls pointed to the correct runtime.