Search code examples
asp.net-mvc-3sgen.exe

Missing sgen.exe


I’m trying to build NopCommerce via the .BAT files that came with the project but I get an error saying I’m missing sgen.exe. I’ve had a look in all the places it should be and done a search on my computer and it is missing.

I have VWD2010, .NET v4.0.30319 and MVC3 and 4 but no sgen.exe.

I’ve tried to build the project within VWD2010 but there are a bunch of web references residing outside the root of the website.

I think I either need to find a copy of sgen.exe and put it in the place that the .BAT file is looking or better would be to be able to publish it from within VWD2010 but I don’t know how to do that. If I right click on the solution I don’t get an option to publish?

Any suggestions?


Solution

  • Publish Instructions for NopCommerce V2.50

    I was able to work it out manually, and published both the website and admin within VWD.

    1, publish the Nop.Web to the root directory of your choice

    2, Create a directory inside your newly create folder and call it Administration

    3, Publish Nop.Admin to the newly created Administration directory that is inside your root directory.

    4, Copy the Plugins directory (\Presentation\Nop.Web\Plugins), not the Plugins directory found in the root to the root of you new project.

    5 Copy “all files”, dll’s and the rest from the bin directory in the Administration directory to the bin directory in the root of your project and don’t replace the duplicate files, there will be three that reside in the bin of Nop.Admin that don’t in the bin of Nop.Web

    And you done.

    Cheers,

    Mike.