We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89698b4 commit cace15cCopy full SHA for cace15c
src/FlubuCore/Tasks/Packaging/PackageTask.cs
@@ -237,6 +237,15 @@ protected override int DoExecute(ITaskContextInternal context)
237
zipFile = zipFile.Substring(0, zipFile.Length - 4);
238
}
239
240
+ if (_addVersionAsPostFixToZipFileName)
241
+ {
242
+ var version = context.Properties.GetBuildVersion().Version;
243
+ if (version == null)
244
245
+ throw new TaskExecutionException("Context property ""Build version must be set when adding version as postfix to filename", 99);
246
+ }
247
248
+
249
string tmp = _addVersionAsPostFixToZipFileName
250
? $"{zipFile}_{context.Properties.GetBuildVersion().Version.ToString(_versionFieldCount)}.zip"
251
: $"{zipFile}.zip";
0 commit comments