Ignore .csproj when no version set
ln.build - build0.waldrennach.l--n.de build job pending
Details
ln.build - build0.waldrennach.l--n.de build job pending
Details
parent
353397e523
commit
833890438f
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue