Fixing Error on Build Machine: error MSB3091: Task failed because “sgen.exe” was not found…

Many thanks to Michael Goldobin for his post on Fixing Continuous Integration build for a .NET 3.5 project. We started receiving the error after finally implementing some mocked out services. Just as suggested, we installed Windows SDK for Windows Server 2008 and .NET Framework 3.5 (warning: 1330.0 MB in size) on the build machine and all was well.

Advertisements

2 thoughts on “Fixing Error on Build Machine: error MSB3091: Task failed because “sgen.exe” was not found…

  1. I’m glad the new Windows SDK for Windows Server 2008 and .NET Framework 3.5 worked for you.

  2. The Windows SDK for Windows Server 2008 and .NET Framework 3.5 is big, as you mentioned, but you can deselect many components that you don’t need during setup. The documents are huge ~400 MB, and those can be accessed online through MSDN.  You may also want to deselcect the samples, either the Win32 samples, the .NET samples, or both. 
     

    The Windows SDK for Server 2008 has the content needed to develop on or for Server 2008, but also supports creating applications for or on Windows XP, Windows Server 2003, and Vista.   
     
    You can check the MSDN Windows SDK Development Center http://msdn2.microsoft.com/en-us/windowsserver/bb980924.aspx for links to all of the Windows SDKs, plus links to the MSDN Windows SDK Forum and the Windows SDK Blog.
     
    Karin Meier
    Windows SDK Program Manager

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s