2017-03-03 05:04:03 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System;
|
2016-02-02 18:04:50 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Runtime.InteropServices;
|
2016-03-09 03:32:31 +00:00
|
|
|
|
using System.Security.Cryptography;
|
2016-02-02 18:04:50 +00:00
|
|
|
|
|
2016-04-25 20:17:46 +00:00
|
|
|
|
using Microsoft.DotNet.Cli.Build.Framework;
|
|
|
|
|
|
2016-02-02 18:04:50 +00:00
|
|
|
|
namespace Microsoft.DotNet.Cli.Build
|
|
|
|
|
{
|
|
|
|
|
public static class Utils
|
|
|
|
|
{
|
2016-05-12 00:20:40 +00:00
|
|
|
|
public static string GetVersionFileContent(string commitHash, string version)
|
|
|
|
|
{
|
|
|
|
|
return $@"{commitHash}{Environment.NewLine}{version}{Environment.NewLine}";
|
|
|
|
|
}
|
2016-02-02 18:04:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|