Environment variable not working

  • Thread starter Thread starter at
  • Start date Start date
A

at

Hi, I have a C# VS2005 project. In the project properties Build tab
in the Output Path box i have entered the following as i want to specify
where the binary dll will be created.

$(TARGETOUTPUT)\release

I get the a directory called $(TARGETOUTPUT) under my project directory
which is not what i wanted at all. TARGETOUTPUT is an environment variable
specified in DOS command shell using set TARGETOUTPUT = D:\Rep\target

How can i get ths to work?

Thanks
 
After you have verified that the OS has loaded your environment variable, try
this:

Close VS2005, open your .csproj file, and change the OutputPath to:
<OutputPath>$(TARGETOUTPUT)</OutputPath>

Save your change and re-open VS2005; take a look in the output path box.
VS2005 _should_ have expanded it. You will need to change it per
configuration (Debug, Release etc.) as necessary.
 
Back
Top