File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -106,16 +106,17 @@ partial class Build : NukeBuild
106
106
Target Compile => _ => _
107
107
. DependsOn ( Restore )
108
108
. Executes ( ( ) =>
109
- {
109
+ {
110
+ var version = "2.8.1" ;
110
111
DotNetBuild ( s => s
111
112
. SetProjectFile ( Solution )
112
113
. SetFileVersion ( GitVersion . MajorMinorPatch )
113
114
//.SetVersion(version)
114
115
. 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 )
119
120
. EnableNoRestore ( ) ) ;
120
121
} ) ;
121
122
Target Test => _ => _
@@ -142,6 +143,7 @@ partial class Build : NukeBuild
142
143
//.DependsOn(RunChangelog) requires authrntication in github action
143
144
. Executes ( ( ) =>
144
145
{
146
+ var versio = "2.8.1" ;
145
147
var branchName = GitRepository . Branch ;
146
148
147
149
if ( branchName . Equals ( "main" , StringComparison . OrdinalIgnoreCase )
@@ -153,7 +155,7 @@ partial class Build : NukeBuild
153
155
var releaseNotes = branchName . Equals ( "main" , StringComparison . OrdinalIgnoreCase )
154
156
? GetNuGetReleaseNotes ( ChangelogFile , GitRepository )
155
157
: ParseReleaseNote ( ) ;
156
- var version = GitVersion . SemVer ;
158
+ var version = versio ;
157
159
var project = Solution . GetProject ( "AvroSchemaGenerator" ) ;
158
160
DotNetPack ( s => s
159
161
. SetProject ( project )
You can’t perform that action at this time.
0 commit comments