Fixing versions
- Added --version-suffix to build and publish - Support reading DOTNET_* version variables everywhere versions can be read - Show the commit sha in dotnet --version - Added tests that check the assembly output version - Set DOTNET_BUILD_VERSION when producing the CLI app itself so that it has the version information stamped in for help.
This commit is contained in:
parent
02e39cf81d
commit
69b5e3f815
17 changed files with 297 additions and 35 deletions
|
@ -5,13 +5,16 @@ using Microsoft.DotNet.Cli.Utils;
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Microsoft.DotNet.Tools.Test.Utilities
|
||||
{
|
||||
public class TestCommand
|
||||
{
|
||||
protected string _command;
|
||||
|
||||
|
||||
public Dictionary<string, string> Environment { get; } = new Dictionary<string, string>();
|
||||
|
||||
public TestCommand(string command)
|
||||
{
|
||||
_command = command;
|
||||
|
@ -63,9 +66,14 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
RedirectStandardOutput = true
|
||||
};
|
||||
|
||||
foreach (var item in Environment)
|
||||
{
|
||||
psi.Environment[item.Key] = item.Value;
|
||||
}
|
||||
|
||||
var process = new Process
|
||||
{
|
||||
StartInfo = psi
|
||||
StartInfo = psi,
|
||||
};
|
||||
|
||||
process.EnableRaisingEvents = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue