I\'ve just upgraded a project from VS2008 to VS2010 but I\'m still targeting the 3.5 framework.
In my project file I have a custom task to run SGEN to generate my X
@Craig - Did you manually install the 7.0A framework on your build machine. If so, your problem may be your registry settings and not msbuild. Take a look at LocalMachine -> Software -> Microsoft -> MSBuild -> ToolsVersions -> 4.0 -> SDK35ToolsPath and make sure the reg key that is referenced there is valid. (Hint: Make sure the -x86 is there only if the -x86 key exists.)