Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

error MSB3086: Task could not find "sgen.exe" using the SdkToolsPath

auspicious's Avatar

auspicious

26 Jan, 2011 03:33 AM

Any ideas?

c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2249,9): warning MSB3084: Task attempted to find "sgen.exe" in two locations. 1) Under the "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin" processor specific directory which is generated based on SdkToolsPath 2) The x86 specific directory under "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin" which is specified by the SDKToolsPath property. You may be able to solve the problem by doing one of the following: 1) Set the "SDKToolsPath" property to the location of the Microsoft Windows SDK. c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2249,9): error MSB3086: Task could not find "sgen.exe" using the SdkToolsPath "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin" 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

  1. 1 Posted by auspicious on 26 Jan, 2011 03:36 AM

    auspicious's Avatar

    Some instructions for settings that need to change on these images:
    http://stackoverflow.com/questions/2731365/running-msbuild-fails-to...

  2. Support Staff 2 Posted by friism on 26 Jan, 2011 04:22 AM

    friism's Avatar

    Hi nariman

    We would like to keep our build-servers as "stock" as possible and not install or configure extra sdks.

    Try adding <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> to both <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> and <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> sections of your .csproj

    Let me know if this doesn't resolve your issue.

  3. friism closed this discussion on 26 Jan, 2011 04:22 AM.

  4. rune re-opened this discussion on 03 Feb, 2011 10:13 PM

  5. Support Staff 3 Posted by rune on 03 Feb, 2011 10:13 PM

    rune's Avatar

    Hi,

    the problem with a missing sgen.exe file is now fixed so you should be able to build your project now (if you didn't figure a workaround).

    Best regards,
    Rune

  6. rune closed this discussion on 03 Feb, 2011 10:13 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac