Write a 'latest.coherent.version' file at blob storage so users have a 'coherent' option to SDK installations.
This commit is contained in:
parent
3a5612f153
commit
c497bf498f
5 changed files with 103 additions and 26 deletions
|
@ -31,6 +31,8 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[Required]
|
||||
public string NugetVersion { get; set; }
|
||||
|
||||
public bool Coherent { get; set; }
|
||||
|
||||
private AzurePublisher AzurePublisherTool
|
||||
{
|
||||
get
|
||||
|
@ -81,6 +83,10 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
string cliVersion = Utils.GetVersionFileContent(CommitHash, NugetVersion);
|
||||
AzurePublisherTool.PublishStringToBlob($"{targetFolder}/latest.version", cliVersion);
|
||||
if (Coherent == true)
|
||||
{
|
||||
AzurePublisherTool.PublishStringToBlob($"{targetFolder}/latest.coherent.version", cliVersion);
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue