Skip to content

Commit

Permalink
Scale back autorestore of dotnet tools to only be in BizHawk.Common
Browse files Browse the repository at this point in the history
fixes f58b464
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
  • Loading branch information
YoshiRulz committed Jun 7, 2024
1 parent f58b464 commit cbf0728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
5 changes: 5 additions & 0 deletions src/BizHawk.Common/BizHawk.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit cbf0728

Please sign in to comment.