Add a shared runtime aware host

And use it in dotnet-compile
This commit is contained in:
Andrew Stanton-Nurse 2015-10-21 15:21:14 -07:00
parent d8ab5357fd
commit e70a169b28
45 changed files with 1881 additions and 152 deletions

View file

@ -41,7 +41,7 @@ namespace Microsoft.DotNet.Tools.Compiler.Csc
{
hostRoot = AppContext.BaseDirectory;
}
var corerun = Path.Combine(hostRoot, Constants.CoreRunName);
var corerun = Path.Combine(hostRoot, Constants.HostExecutableName);
var cscExe = Path.Combine(hostRoot, "csc.exe");
return File.Exists(corerun) && File.Exists(cscExe)
? Command.Create(corerun, $@"""{cscExe}"" {cscArgs}")