Paket/C#: Automatically restore tools for CSharp.sln.

This is not a general fix, as we not always build the
solution file, but this should improve the DX for
local developers that use the solution file.
This commit is contained in:
Cornelius Riemenschneider
2024-05-15 21:51:33 +02:00
parent 950e8c85e7
commit 1b22e0879a

View File

@@ -0,0 +1,6 @@
<Project InitialTargets="LocalToolRestore">
<Target Name="LocalToolRestore" BeforeTargets="PaketRestore">
<Message Text="Restoring tools" Importance="High" />
<Exec Command="dotnet tool restore" />
</Target>
</Project>