Skip to content

Commit dcbf3ae

Browse files
committed
Fix dotnet-tool --version/-v issue
1 parent e57f2cb commit dcbf3ae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build.cake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Task("Test")
4444
{
4545
Configuration = configuration,
4646
NoBuild = true,
47+
NoRestore = true,
4748
});
4849
});
4950

@@ -72,11 +73,14 @@ Task("Format-Fix")
7273
});
7374

7475
Task("Pack-DotNetTool")
76+
.IsDependentOn("Compile")
7577
.Does(() =>
7678
{
7779
DotNetPack(consoleCsproj, new DotNetPackSettings
7880
{
7981
Configuration = configuration,
82+
NoRestore = true,
83+
NoBuild = true,
8084
OutputDirectory = "./artifacts/nupkgs",
8185
MSBuildSettings = new DotNetMSBuildSettings
8286
{

0 commit comments

Comments
 (0)