Skip to content

Commit 1b22e08

Browse files
committed
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.
1 parent 950e8c8 commit 1b22e08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

csharp/before.CSharp.sln.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project InitialTargets="LocalToolRestore">
2+
<Target Name="LocalToolRestore" BeforeTargets="PaketRestore">
3+
<Message Text="Restoring tools" Importance="High" />
4+
<Exec Command="dotnet tool restore" />
5+
</Target>
6+
</Project>

0 commit comments

Comments
 (0)