Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Created December 11, 2015 04:32
Show Gist options
  • Save masaru-b-cl/e6063336825a9d968dbd to your computer and use it in GitHub Desktop.
Save masaru-b-cl/e6063336825a9d968dbd to your computer and use it in GitHub Desktop.
環境変数で指定した先にビルド成果物を作成する*.*proj
...
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath Condition="'$(SPECIAL_EXE_DIR)' != ''">$(SPECIAL_EXE_DIR)\</OutputPath>
<OutputPath Condition="'$(OutputPath)' == ''">.\bin\</OutputPath>
<DocumentationFile>Hoge.xml</DocumentationFile>
<DebugSymbols>True</DebugSymbols>
...
</PropertyGroup>
...
@masaru-b-cl
Copy link
Author

環境変数%SPECIAL_EXE_DIR%が定義されていればそちらへ、なければプロジェクトフォルダー\binに出力する。
なお、msbuild.exeで叩くときは、OutDirプロパティを指定してそちらに出力させる。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment