2017-03-02 21:04:03 -08: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 10:04:50 -08:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Runtime.InteropServices;
|
2016-03-08 19:32:31 -08:00
|
|
|
|
using System.Security.Cryptography;
|
2016-02-02 10:04:50 -08:00
|
|
|
|
|
2016-04-25 13:17:46 -07:00
|
|
|
|
using Microsoft.DotNet.Cli.Build.Framework;
|
|
|
|
|
|
2016-02-02 10:04:50 -08:00
|
|
|
|
namespace Microsoft.DotNet.Cli.Build
|
|
|
|
|
{
|
|
|
|
|
public static class Utils
|
|
|
|
|
{
|
2016-05-11 17:20:40 -07:00
|
|
|
|
public static string GetVersionFileContent(string commitHash, string version)
|
|
|
|
|
{
|
|
|
|
|
return $@"{commitHash}{Environment.NewLine}{version}{Environment.NewLine}";
|
|
|
|
|
}
|
2016-02-02 10:04:50 -08:00
|
|
|
|
}
|
|
|
|
|
}
|