News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Wrong $(variables) output

Started by Pecan, March 14, 2007, 03:47:04 PM

Previous topic - Next topic

Pecan

During post processing I get the following output for:

cmd /c echo $(TARGET_OUTPUT_DIR)
cmd /c echo $(TARGET_NAME)
cmd /c echo $(TARGET_OUTPUT_FILE)

C:\Usr\Proj\ThreadSearch\
Debug
.\bin\Debug\ThreadSearch.dll

Shouldn't number 1 be:

C:\Usr\Proj\ThreadSearch\.bin\Debug\


jomeggs

Quote from: Pecan on March 14, 2007, 03:47:04 PM
Shouldn't number 1 be:

C:\Usr\Proj\ThreadSearch\.bin\Debug\

That's not all, there is something wrong with these variables.

  • Create two new console projects (test 1 and test2) in a workspace
  • add "cmd /c $(TARGET_OUTPUT_FILE)" to both in pre-build steps
  • activate first project
  • try "build workspace"

For both projects you will see "./test1".  :(

It seems to me, that the variable expansion works only for the currently activatet project.