Visual Studio Development Bookmark and Share   
 index > Visual C# Express Edition > Visual Studio Express Custom Build Step problems
 

Visual Studio Express Custom Build Step problems

I want to use Visual Studio express to build a static library from existing third party source. Basically I just need a custom build step that looks like the following :

cd ${ProjDir}\windows
nmake

But no matter what I try I get a "system can't find the specified path" error.  The way the third party source is structured I need to cd into the windows subdir and run nmake. I can't, for instance, do the following :

nmake ${ProjDir}\windows\Makefile

What's the trick here?

szchlacta  Monday, October 05, 2009 7:37 PM
Unfortunately, the Build Events just runs commands - it isn't a full command shell where you can call cd, etc.

One option would be to make a batch file that looked like:

    cd %1
    nmake

Then call your batch file directly:


myBuildBatch.bat "${ProjDir}\Windows"


This way, it'll execute inside of a batch file, which gives it a context where you can use cd.
Reed Copsey, Jr. - http://reedcopsey.com
Reed Copsey, Jr.  Monday, October 05, 2009 8:08 PM
Unfortunately, the Build Events just runs commands - it isn't a full command shell where you can call cd, etc.

One option would be to make a batch file that looked like:

    cd %1
    nmake

Then call your batch file directly:


myBuildBatch.bat "${ProjDir}\Windows"


This way, it'll execute inside of a batch file, which gives it a context where you can use cd.
Reed Copsey, Jr. - http://reedcopsey.com
Reed Copsey, Jr.  Monday, October 05, 2009 8:08 PM

You can use google to search for other answers

Custom Search

More Threads

• How to use matlab m file in C#?
• Listview question
• Binary File Reading
• display data from sql in messagebox
• MSDN webcast. C# game programming
• Express and Licencing
• A good tutorial / reference for control creation?
• what do i have to add to distribute my app? a bootstrapper??? what should i use to install my app? how do i add an icon?
• Rich text editor plz help
• Obtain a particular cell value in DatGridView