Overwrite dotnet.exe during our build.

New CoreFX now has dotnet.exe in the shared framework. We need to overwrite it when we copy corehost.
This commit is contained in:
Eric Erhardt 2016-03-25 13:29:33 -05:00
parent ed887d183a
commit 49c16e8823

View file

@ -308,7 +308,7 @@ namespace Microsoft.DotNet.Cli.Build
// corehost will be renamed to dotnet at some point and then we will not need to rename it here.
File.Copy(
Path.Combine(Dirs.Corehost, CoreHostBaseName),
Path.Combine(SharedFrameworkNameAndVersionRoot, $"dotnet{Constants.ExeSuffix}"));
Path.Combine(SharedFrameworkNameAndVersionRoot, $"dotnet{Constants.ExeSuffix}"), true);
File.Copy(
Path.Combine(Dirs.Corehost, HostPolicyBaseName),
Path.Combine(SharedFrameworkNameAndVersionRoot, HostPolicyBaseName), true);