Skip to content

Commit 2baa23f

Browse files
committed
build: build lib on pack
This makes sure the correct version is set. closes #475
1 parent 9d11d8e commit 2baa23f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build.cake

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var configuration = "Release";
1313
///////////////////////////////////////////////////////////////////////////////
1414
var buildArtifacts = Directory("./artifacts");
1515
var deployment = Directory("./artifacts/deployment");
16-
var version = "1.0.0";
16+
var version = "2.3.0";
1717

1818
///////////////////////////////////////////////////////////////////////////////
1919
// MODULES
@@ -283,14 +283,13 @@ Task("NuGet")
283283
.Does(() =>
284284
{
285285
Information(Figlet("NuGet"));
286+
Information($"Building NuGet Package for Version {version}");
286287

287288
var settings = new DotNetCorePackSettings()
288289
{
289290
Configuration = configuration,
290291
OutputDirectory = buildArtifacts,
291-
NoRestore = true,
292-
NoBuild = true,
293-
VersionSuffix = ""
292+
NoRestore = true
294293
};
295294
settings.ArgumentCustomization = args => args.Append("--include-symbols").Append("-p:SymbolPackageFormat=snupkg");
296295
settings.MSBuildSettings = new DotNetCoreMSBuildSettings().SetVersionPrefix(version);

0 commit comments

Comments
 (0)