Configure MSBuild output path

Using MSBuild command line, you can specify the output path like below:

C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe <path_to_project_file> /t:Build /p:OutDir=c:\custom_build_out\;Configuration=PRODUCTION;Platform=x64

Note:

  1. If you change the order of specifying the OutDir property for /p, this doesn’t work.
  2. The OutDir property is for specifying a full path to an alternate directory. OutputPath is for a relative directory.
  3. It has to have a project name + build configuration name in the custom build output path as MSBuild does not append these things to the OutDir.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)