Post-Build Steps in Visual Studio .NET

B

bnc mag

Hello,

Does anyone know how I can add post-build steps to my C#.NET project
using user/system environment variables?

For example, I have a user environment variable named "CommonPath" which
points to "C:\CommonPath"
I would like to copy my resulting DLLs to this directory.

Clicking on the macros button on the post-build dialog gives a bunch of
pre-defined paths. These are useful, but I need access to the
user/system environment variables like Visual Studio 6 allows me to do.
 
D

Dennis Myrén

You may refer to environment variables "as usual", for instance:
echo %username%
should printout the name of the current user.
 
B

bnc mag

Thank you. In VS6 I would use $(COMMONPATH), whereas in .NET I should
have used %COMMONPATH% in my post-build step.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top