File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ var cleanDependencyCache = Argument("clean_build_cache", false);
1212var lastBuildCommit = Argument( "last_build_commit" , "" ) ;
1313var nugetPushSource = Argument( "nuget_push_source" , "https://nuget.bepinex.dev/v3/index.json" ) ;
1414var nugetPushKey = Argument( "nuget_push_key" , "" ) ;
15+ var customBuildVersion = Argument( "build_version" , "" ) ;
1516
1617var buildVersion = "" ;
1718var currentCommit = RunGit( "rev-parse HEAD" ) ;
@@ -69,6 +70,10 @@ Task("Build")
6970 buildSettings . MSBuildSettings . Properties [ "AssemblyVersion" ] = new [ ] { buildVersion + "." + buildId } ;
7071 buildVersion += "-be." + buildId ;
7172 buildSettings . MSBuildSettings . Properties [ "Version" ] = new [ ] { buildVersion } ;
73+ } else if ( ! string . IsNullOrEmpty ( customBuildVersion ) )
74+ {
75+ buildVersion = customBuildVersion ;
76+ buildSettings . MSBuildSettings . Properties [ "Version" ] = new [ ] { buildVersion } ;
7277 }
7378
7479 foreach ( var file in GetFiles ( "./BepInEx.*/*.csproj" ) )
You can’t perform that action at this time.
0 commit comments