resgen command is not working in post build event of project [Resolved]

Posted by Ermahesh2009 under VB.NET on 2/28/2014 | Points: 10 | Views : 3139 | Status : [Member] | Replies : 3
Dear All

this command is not working in post build event of project
resgen "$(ProjectDir)SpectrumLite_en-US.txt" "$(ProjectDir)"

error message in output window is

'resgen' is not recognized as an internal or external command,
operable program or batch file.

that command successfully run on visual stdio command prompt but nighter in cmd nor post build event .

Thanks in Advance




Responses

Posted by: Bandi on: 2/28/2014 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
refer
http://stackoverflow.com/questions/1351830/what-does-exited-with-code-9009-mean-during-this-build
http://support.microsoft.com/kb/908268

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Ermahesh2009, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 2/28/2014 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://stackoverflow.com/questions/6140453/how-to-run-resgen-with-build-events-in-vs2010
https://go4answers.webhost4life.com/Example/resolving-external-file-references-31537.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Ermahesh2009, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ermahesh2009 on: 2/28/2014 [Member] Starter | Points: 25

Up
0
Down
Dear Chandu

thanks a lot

http://stackoverflow.com/questions/1351830/what-does-exited-with-code-9009-mean-during-this-build


It happens when you are missing some environment settings for using Microsoft Visual Studio 2010 x86 tools.
Therefore, try adding as a first command in your post-build steps:

call "$(DevEnvDir)..\Tools\vsvars32.bat"
It should be placed before any other command.
It will set environment for using Microsoft Visual Studio 2010 x86 tools


Ermahesh2009, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response