Prepare build error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
When I try to run the Prepare.bat file on page 7 of guide book, it gives me an error saying it could not find "sgen.exe". It appears to have something to do with not having Microsoft Windows SDK. I tried to download it, but I think I need Visual Studio 2010 rather than Visual Web Developer 2010 express. Is there a way using the express version rather than full Visual Studio to deploy nopCommerce? Thanks for the help!
12 years ago
I have visual 2010Express, SDK v7.0a (XP SP3) and had the same problem.
I found this and work for me:

How to Fix error Task could not find "sgen.exe" using the SdkToolsPath for v7.0a in VS2010

1
I downloaded and installed the latest SDK: Windows SDK v7.1 for Windows 7. Supported Operating Systems: Windows 7, Windows Server 2003 R2 Standard Edition (32-bit x86), Windows Server 2003 R2 Standard x64 Edition , Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP Service Pack 3

2
So what I did was copied the v7.1 sgen.exe application file located at C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\sgen.exe and the pasted it in to the v7.0a directory at C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\.

On computers running 64bit Windows 7, you'll notice that C:\Program Files  for 64bit progam files and C:\Program Files (x86) is for 32bit files, but this difference wasn't an issue.

Tanks to Doug Kennard (May 29, 2010, somewhere on the web)
12 years ago
Thanks
works fine
10 years ago
Overall, good ending but took some effort :

Believe it or not, I had issues installing the SDK. After digging on the web found that it's due to a VC++ redistributable version and uninstalling that VC++ thing helped with the SDK install.

And then your steps fixed the problem with prepare.bat (or trying to publish from VS 2012 directly as that has the same sgen.exe missing  problem as from prepare.bat)

==============SUMMARY=================

Trying to install : Microsoft Windows SDK for Windows 7 and .NET Framework 4 (http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=8279 ) But it failed ...


Steps to fix this SDK install problem:
  
  http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8f3350f9-0b47-40ae-b070-f2ccbf041875/windows-7-sdk-installation-failure
  
  uninstall :
    Visual C++ 2010 x86 Redistributable from your machine.
    
    
  After installation :

    Copy : sgen.exe from
    
      From :
      C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools
      To :
      C:\Program Files\Microsoft SDKs\Windows\v7.0a\Bin\NETFX 4.0 Tools

-----------------------------------------------------------------------------------------------------------------

Cheers,
Kiran
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.