Is it possible to specify a MSBuild property on the command line which references another property?

StackOverflow https://stackoverflow.com/questions/13347644

  •  28-11-2021
  •  | 
  •  

Question

For example given a project quickie.vcxproj, to build it under c:\output\c without specifying the project name explicitly:

msbuild /t:Rebuild /p:Configuration=Debug /p:PlatformToolset=v100 quickie\quickie.vcxproj /p:OutDir=c:\output\c\$(MSBuildProjectName)\

The result is a directory c:\output\c\$(MSBuildProjectName)

Required result is: c:\output\c\quickie

Attemping with c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild

Was it helpful?

Solution

No. Exceeding thirty characters

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top