Jump to content
David P

Compiler param like $(Config) for the app name

Recommended Posts

I'm trying to standardise on a common output pathing for our various apps and for the output directories I have something like this:

 

  $(DEV_BUILD_DIR)\$(MSBuildProjectName)_$(Platform)_$(Config)

 

To create

 

     C:\dev_build\MyApp_Win32_Debug\

 

This works fine for the intermediate files etc.  If I use the above for the Final Ouput directory, the exe (+others) are placed in the directory, but an F9 results in an error saying unable to locate the executable.  It looks like the IDE has no knowledge of $(MSBuildProjectName).

 

Aside from envrionment variables, is there a list available of other params to be used in the project directory fields, specifically the project name?

 

Thanks.

 

 

Share this post


Link to post

Thanks, it partially works.

 

An empty directory called

  

    c:\dev_build\MyApp_Win32_Debug\

 

is created, but also one called

 

  c:\dev_build\_Win32_Debug\

 

which contains all the output files (exe, obj, il* etc)

Share this post


Link to post

The variable is defined in the base configuration, so it is safe to use it in the inherited ones, but fails when used inside the base configuration itself.

 

A possible solution is to normalize the project file with Project Magician, which places the variable in front of any others in the base configuration.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×