Fixes for Windows.
This commit is contained in:
parent
6828fe0402
commit
22b3b497e0
2 changed files with 10 additions and 9 deletions
|
@ -15,17 +15,18 @@ namespace Microsoft.DotNet.Tools.Compiler.Native
|
|||
// TODO: This is not working because it sets the environment variables in a child process
|
||||
// For now get around this by using x86_amd64 cross tools
|
||||
|
||||
var commonToolsPath = Environment.GetEnvironmentVariable("VS140COMNTOOLS");
|
||||
// var commonToolsPath = Environment.GetEnvironmentVariable("VS140COMNTOOLS");
|
||||
|
||||
var scriptPath = Path.Combine(commonToolsPath, "..\\..\\VC\\vcvarsall.bat");
|
||||
var scriptArgs = "x86_amd64";
|
||||
// var scriptPath = Path.Combine(commonToolsPath, "..\\..\\VC\\vcvarsall.bat");
|
||||
// var scriptArgs = "x86_amd64";
|
||||
|
||||
var result = Command.Create(scriptPath, scriptArgs)
|
||||
.ForwardStdErr()
|
||||
.ForwardStdOut()
|
||||
.Execute();
|
||||
// var result = Command.Create(scriptPath, scriptArgs)
|
||||
// .ForwardStdErr()
|
||||
// .ForwardStdOut()
|
||||
// .Execute();
|
||||
|
||||
return result.ExitCode;
|
||||
// return result.ExitCode;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"System.Console": "4.0.0-*",
|
||||
"System.Collections": "4.0.11-*",
|
||||
"System.Linq": "4.0.1-*",
|
||||
"System.Linq.Expressions": "4.0.1-*",
|
||||
"Microsoft.NETCore.TestHost": "1.0.0-*",
|
||||
"System.Diagnostics.Process": "4.1.0-*",
|
||||
"System.IO": "4.0.11-*",
|
||||
"System.IO.FileSystem": "4.0.1-*",
|
||||
|
|
Loading…
Add table
Reference in a new issue