Skip to content

Commit a8592a5

Browse files
committed
fix
1 parent 11a4d0b commit a8592a5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

build/Build.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,17 @@ partial class Build : NukeBuild
106106
Target Compile => _ => _
107107
.DependsOn(Restore)
108108
.Executes(() =>
109-
{
109+
{
110+
var version = "2.8.1";
110111
DotNetBuild(s => s
111112
.SetProjectFile(Solution)
112113
.SetFileVersion(GitVersion.MajorMinorPatch)
113114
//.SetVersion(version)
114115
.SetConfiguration(Configuration)
115-
.SetAssemblyVersion(GitVersion.AssemblySemVer)
116-
.SetFileVersion(GitVersion.AssemblySemFileVer)
117-
.SetInformationalVersion(GitVersion.InformationalVersion)
118-
.SetVersion(GitVersion.NuGetVersionV2)
116+
.SetAssemblyVersion(version)
117+
.SetFileVersion(version)
118+
.SetInformationalVersion(version)
119+
.SetVersion(version)
119120
.EnableNoRestore());
120121
});
121122
Target Test => _ => _
@@ -142,6 +143,7 @@ partial class Build : NukeBuild
142143
//.DependsOn(RunChangelog) requires authrntication in github action
143144
.Executes(() =>
144145
{
146+
var versio = "2.8.1";
145147
var branchName = GitRepository.Branch;
146148

147149
if (branchName.Equals("main", StringComparison.OrdinalIgnoreCase)
@@ -153,7 +155,7 @@ partial class Build : NukeBuild
153155
var releaseNotes = branchName.Equals("main", StringComparison.OrdinalIgnoreCase)
154156
? GetNuGetReleaseNotes(ChangelogFile, GitRepository)
155157
: ParseReleaseNote();
156-
var version = GitVersion.SemVer;
158+
var version = versio;
157159
var project = Solution.GetProject("AvroSchemaGenerator");
158160
DotNetPack(s => s
159161
.SetProject(project)

0 commit comments

Comments
 (0)