--- lang: ja-jp breaks: true --- # WPF github dotnet/wpf のビルド 2021-05-24 > dotnet/wpf > https://github.com/dotnet/wpf > Developer Guide > https://github.com/dotnet/wpf/blob/main/Documentation/developer-guide.md ## 単純にビルドするだけなら、`build.cmd`を実行するだけでOK :::info `.git`フォルダがないとビルドエラーとなる。 ::: ## Visual Studio を使ったビルド Microsoft.Dotnet.Wpf.sln を Visual Studio 2019 Preview で開き、ビルドすると、環境変数に `CommonLibrary_NativeInstallDir` 登録されていない為にパスが不正とのエラーを吐く。 とりあえず、以下の行を追加すると行うとうまくいく。 ### eng\WpfArcadeSdk\tools\ReferenceAssembly.targets ```= <CommonLibrary_NativeInstallDir Condition="'$(CommonLibrary_NativeInstallDir)' == ''">$(SolutionDir).tools\native</CommonLibrary_NativeInstallDir> ``` ###### tags: `WPF` `dotnet` `Visual Studio 2019 Preview`