> > 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. > > Yes, those binaries are both in: > > \Windows\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
I was able to duplication the error using MSBuild from the command line. Apparently since I wasn't specifying Configuration=Release it wasn't trying to run sgen.exe. I did some more testing an research. It seems that MSBuild uses the 7.0a SDK and not the 7.1 SDK. It looks like there is a way to specify it... however, I couldn't figure it out. I see that there is a way to specify it in the C++ application. Perhaps native only? I'm not sure. There is a tool WindownSDKVer.exe (This is the "SDK Configuration Tool" in the program files\Microsoft Windows SDK 7.1\Visual Studio Registration) that you can run to set the SDK to 7.1. However, this didn't seem to make a difference at all when I ran MSBuild. Finally I looked on my dev machine and saw that I didn't have the 7.1 SDK... Well that makes sense cause I didn't install it. On my dev machine the 7.0a had a lot more files. Apparently VS Web Dev doesn't install a bunch of stuff that Visual Studio does. I did find on line that people said they had to install VS C# Express to get sgen in the 7.0a folder. Anyway... I just copied the 7.0a folder from my dev machine to the build server. Perhaps I could have done that in the first place without installing VSWD Express however, I still needed to get the RIA Services and Silverlight stuff on the build server and the SL SDK and Ria Services server only install didn't seem to do it. Sigh... why can they just make SDKs that actually give you what you need? Anyway... you guys may want to look into it... see if there is a way to be able to specify which SDK to use during a build like you can specify the targeted framework. This is probably going to be needed to build VS 2010 C++ projects. It looks like it may be possible to set an ENV variable named SKDToolsPath or something. I didn't persue it further. Thanks for the help... and making me look more at the 7.0a folder. BOb > > > > Also, note that the .NET 4.0 SDK programs are installed in their own > > subdirectory now. "NETFX 4.0 Tools", make sure that exists. > > Yep, it does. See above. > > > > Let us know if this helps. If not, please provide additional details > > (steps taken, what's installed now, etc) and we'll dig deeper. > > Nope... really nothing missing or wrong from what I can tell and based on > your email. Not sure what else I can tell you other than this snippet from > my build script: > > <msbuild project="${ProjectDir}/Product/${project::get-name()}.sln" > verbose="true"> > <property name="Configuration" value="Release" /> > <arg line="/noconsolelogger" /> > <arg > line="/logger:nant/ThoughtWorks.CruiseControl.MSBuild.dll;msbuild- > results.xml" /> > </msbuild> > > When I run the build I get the errors that I sent in the OP (shown below). > > Perhaps the logger is an issue? > > Thanks, > BOb > > > 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 ------------------------------------------------------------------------------ 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