--- lang: ja-jp breaks: true --- # MSBuild C# プロジェクトフォルダに `Directory.Build.props` を配置して一括でプロジェクトの設定を行う 2021-09-30 > C#の全プロジェクトに便利な設定を一括反映する > https://qiita.com/kojimadev/items/45b4c8e002c226cc1c36 ## 同じソースコードから常に同じバイナリを生成する設定 ```xml= <Project> <PropertyGroup> <Deterministic>true</Deterministic> <!-- <LangVersion>preview</LangVersion> --> </PropertyGroup> </Project> ``` ## フォルダに適用した`Directory.Build.props`を特定のプロジェクトのみ除外する > c# - Directory.Build.propsの使用から特定のプロジェクトを除外す > https://try2explore.com/questions/jp/12486745 以下の`Directory.Build.props`ファイルを特定のプロジェクトに配置する ```xml= <Project> <!-- Only here so that the default Directory.Build.props will not be used. --> </Project> ``` ###### tags: `MSBuild` `C#` `Directory.Build.props` `Deterministic` `LangVersion`