Skip to content

Commit 10e840a

Browse files
authored
Merge pull request #41 from TraGicCode/version-not-being-set-correctly-for-dotnet-tool
Fix dotnet-tool --version/-v issue
2 parents e57f2cb + dcbf3ae commit 10e840a

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)