Scale back autorestore of dotnet tools to only be in `BizHawk.Common`

fixes f58b4640c
and to be fair this was the one place actually using a tool during the
build process, so it makes sense to keep them together I guess
This commit is contained in:
YoshiRulz 2024-06-07 22:11:26 +10:00
parent f58b4640c5
commit cbf0728d4e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 5 additions and 5 deletions

View File

@ -52,9 +52,4 @@
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" PrivateAssets="all" />
<PackageReference Include="System.Resources.Extensions" PrivateAssets="all" />
</ItemGroup>
<Target Name="RestoreTools" BeforeTargets="PreBuildEvent">
<!-- why is this not the default behaviour -->
<Exec Command="dotnet tool restore"
StandardOutputImportance="low" /> <!-- this parameter has almost no documentation, hooray -->
</Target>
</Project>

View File

@ -16,6 +16,11 @@
<ItemGroup>
<Analyzer Include="$(MSBuildProjectDirectory)/../../References/BizHawk.SrcGen.VersionInfo.dll" />
</ItemGroup>
<Target Name="RestoreTools" BeforeTargets="PreBuildEvent">
<!-- why is this not the default behaviour -->
<Exec Command="dotnet tool restore"
StandardOutputImportance="low" /> <!-- this parameter has almost no documentation, hooray -->
</Target>
<Target Name="InstallGitHooks" AfterTargets="PreBuildEvent">
<Exec Command="dotnet pwsh $(MSBuildProjectDirectory)/../../Dist/install_git_hooks.ps1" />
</Target>