Remove setting of DOTNET_HOME during compile
This commit is contained in:
parent
c7e9139fa6
commit
50e7a8b71a
2 changed files with 0 additions and 7 deletions
|
@ -159,8 +159,6 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
{
|
{
|
||||||
Rmdir(outputDir);
|
Rmdir(outputDir);
|
||||||
|
|
||||||
dotnet.SetDotNetHome();
|
|
||||||
|
|
||||||
var configuration = c.BuildContext.Get<string>("Configuration");
|
var configuration = c.BuildContext.Get<string>("Configuration");
|
||||||
var binDir = Path.Combine(outputDir, "bin");
|
var binDir = Path.Combine(outputDir, "bin");
|
||||||
var runtimeOutputDir = Path.Combine(outputDir, "runtime", "coreclr");
|
var runtimeOutputDir = Path.Combine(outputDir, "runtime", "coreclr");
|
||||||
|
|
|
@ -20,11 +20,6 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
BinPath = binPath;
|
BinPath = binPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetDotNetHome()
|
|
||||||
{
|
|
||||||
Environment.SetEnvironmentVariable("DOTNET_HOME", Path.GetDirectoryName(BinPath));
|
|
||||||
}
|
|
||||||
|
|
||||||
public Command Exec(string command, params string[] args)
|
public Command Exec(string command, params string[] args)
|
||||||
{
|
{
|
||||||
return Command.Create(Path.Combine(BinPath, $"dotnet{Constants.ExeSuffix}"), Enumerable.Concat(new[] { command }, args));
|
return Command.Create(Path.Combine(BinPath, $"dotnet{Constants.ExeSuffix}"), Enumerable.Concat(new[] { command }, args));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue