Re: Building .Net 4.0 with .91 Alpha 1 problems

Bob Archer <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
> So, you were having issues with MSBuild initially?  Were you trying to
> run MSBuild directly or through NAnt?

Just MSBuild. But, it is working now. I ended up installing Visual Studio Web Developer Express 2010

>> 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.

Well, it didn't work with that directory their either. I reinstalled VS Express and it did return. So you are correct. However, sgen.exe is not in v7.0a\Bin\NETFX 4.0 Tools. 

Even with this restored I get the same error... which makes sense cause sgen isn't in this folder. But, why doesn't it look in the 7.1 folder?

 
> 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

 
> 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 <[email protected]> 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
> > [email protected]
> > 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.