Ignore .csproj when no version set
ln.build - build0.waldrennach.l--n.de build job pending Details

master
Harald Wolff 2020-12-09 17:16:22 +01:00
parent 353397e523
commit 833890438f
1 changed files with 5 additions and 1 deletions

View File

@ -40,7 +40,6 @@ namespace ln.build.commands
foreach (string projectFileName in projectFiles)
{
stage.PipeLine.CommandEnvironment.Extend("DOTNET_PROJECTS", projectFileName);
CSProjHelper csp = new CSProjHelper(projectFileName);
string projectName = csp.GetName();
@ -49,8 +48,13 @@ namespace ln.build.commands
stage.CommandEnvironment.Logger.Log(LogLevel.INFO, "dotnet prepare: project {0} version={1} type={2}", projectName, projectVersion, ot);
if (projectVersion == null)
continue;
if (projectVersion > highestVersion)
highestVersion = projectVersion;
stage.PipeLine.CommandEnvironment.Extend("DOTNET_PROJECTS", projectFileName);
}
stage.PipeLine.CommandEnvironment.Set("RELEASE_VERSION", highestVersion.ToString());