So, you were having issues with MSBuild initially? Were you trying to run MSBuild directly or through NAnt?
WinSDK 7.0A was the first SDK Microsoft released that contained support for .NET 4.0. If I am not mistaken, it is automatically installed when installing VS.NET. I'm not sure the directory should have been deleted. Double check to make sure WinSDK 7.1 installed correctly. You can do that by checking the installation directory. Make sure that programs, such as gacutil.exe and sgen.exe are there. I have been bitten by this bug in the past and it was due to the fact that the WinSDK installation process didn't install the .NET programs. Also, note that the .NET 4.0 SDK programs are installed in their own subdirectory now. "NETFX 4.0 Tools", make sure that exists. Let us know if this helps. If not, please provide additional details (steps taken, what's installed now, etc) and we'll dig deeper. Thanks, Ryan On Wed, Jun 2, 2010 at 2:00 PM, Bob Archer <bob.arc...@amsi.com> wrote: > I am getting the following errors trying to build a .Net 4.0 project with > .91 Alpha 1. > > > > It took me a while to get all the right stuff installed on the build server. > In install the Windows SDK 7.1, the riaservices with SERVER=TRUE switch, the > SL 4 SDK... and still I couldn't get it to build with MSBuild from the > command line. I finally just installed Visual Studio Web Dev Express and SL4 > tools. After that I was able to build with msbuild from the command line. > > > > However, when I run the build via nant I get the following errors: > > > > C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets > (2249,9): > > > > errorMSB3086: Task could not > find "sgen.exe" using the SdkToolsPath "C:\Program Files\Microsoft > SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key > "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make > sure the SdkToolsPath is set and the tool exists in the correct processor > specific location under the SdkToolsPath and that the Microsoft Windows SDK > is installed > > > > > > C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets > (2249,9): > > > > errorMSB3086: Task could not > find "sgen.exe" using the SdkToolsPath "C:\Program Files\Microsoft > SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\" or the registry key > "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A". Make > sure the SdkToolsPath is set and the tool exists in the correct processor > specific location under the SdkToolsPath and that the Microsoft Windows SDK > is installed > > > > I didn't have 7.0a folder.. but I just deleted it. I think that was the beta > SDK. I now only have the v7.1 SDK folder (oh and the 6.1 and 6.0a). > > > > Any ideas? > > > > Thanks, > > BOb > > > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users