「[[マイクロソフト系技術情報 Wiki>http://techinfoofmicrosofttech.osscons.jp/]]」は、「[[Open棟梁Project>https://github.com/OpenTouryoProject/]]」,「[[OSSコンソーシアム .NET開発基盤部会>https://www.osscons.jp/dotNetDevelopmentInfrastructure/]]」によって運営されています。 -[[戻る>MSBuild]] * 目次 [#kb96d803] #contents *概要 [#x44f2c16] Linux上の.NET Core環境でdotnetコマンドのビルドで~ 条件付きコンパイルシンボル(DefineConstants)に設定した値が効かず、#if-#endifが適切に動作しない。 *詳細 [#m6d5dcea] 以下のConditionがLinux環境と異なるっぽい。単純にConditionを削除したら動作した。 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> *参考 [#b0cb71d4] -DefineConstants should be considered for CoreCompile incrementality · Issue #3350 · Microsoft/msbuild~ https://github.com/Microsoft/msbuild/issues/3350 ---- Tags: [[:テスト]], [[:デバッグ]], [[:デプロイ]], [[:.NET開発]], [[:.NET Core]]