зеркало из https://github.com/aspnet/KoreBuild.git
Fix for VersionSuffix ending up in package version twice
This commit is contained in:
Родитель
60ae6269c4
Коммит
91abc3ea33
|
@ -1 +0,0 @@
|
|||
preview1
|
|
@ -25,29 +25,6 @@ functions
|
|||
return seconds.ToString("x").PadLeft(9, (char)'0');
|
||||
}
|
||||
|
||||
private bool _buildQualitySet;
|
||||
private string _buildQuality;
|
||||
|
||||
string BuildQuality
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!_buildQualitySet)
|
||||
{
|
||||
var buildQualityFilePath = Path.Combine(KoreBuildFolderPath, "build-quality.txt");
|
||||
_buildQuality = File.ReadAllText(buildQualityFilePath);
|
||||
_buildQualitySet = true;
|
||||
}
|
||||
|
||||
return _buildQuality;
|
||||
}
|
||||
set
|
||||
{
|
||||
_buildQuality = value;
|
||||
_buildQualitySet = true;
|
||||
}
|
||||
}
|
||||
|
||||
string BuildNumber
|
||||
{
|
||||
get
|
||||
|
@ -58,7 +35,7 @@ functions
|
|||
return "t" + CreateSecondBasedTimeStamp();
|
||||
}
|
||||
|
||||
return !string.IsNullOrEmpty(BuildQuality) ? BuildQuality + "-" + buildNumber : buildNumber;
|
||||
return buildNumber;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
BeforeTargets="Build"
|
||||
Condition="!Exists('$(MSBuildThisFileDirectory)..\.build\common.props')">
|
||||
<Error File="$(MSBuildProjectFile)"
|
||||
Text="Project has not been initialized. Run 'build initialize' in the solution directory '$(MSBuildThisFileDirectory)'" />
|
||||
Text="Project has not been initialized. Run 'build initialize' in the solution directory." />
|
||||
</Target>
|
||||
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче