Update dotnet new to use the new 2.0 templates.

This commit is contained in:
Eric Erhardt 2017-02-09 10:18:39 -06:00
parent 546d62061a
commit 454dd10f8d
10 changed files with 16 additions and 184 deletions

View file

@ -26,8 +26,7 @@ namespace Microsoft.DotNet.Cli.Build
private static string[][] _templatesAndArgs = new string[][]
{
new string[] { "mvc", "-au Individual -f netcoreapp1.0" },
new string[] { "mvc", "-au Individual -f netcoreapp1.1" }
new string[] { "console", "" },
};
public override bool Execute()
@ -67,6 +66,12 @@ namespace Microsoft.DotNet.Cli.Build
}
}
var frameworkVersion = rootElement.Properties.LastOrDefault(p => p.Name == "RuntimeFrameworkVersion");
if (frameworkVersion != null)
{
dataToHash += $"RuntimeFrameworkVersion={frameworkVersion.Value}";
}
Directory.Delete(targetDir, true);
}