Update dotnet new to use the new 2.0 templates.
This commit is contained in:
parent
546d62061a
commit
454dd10f8d
10 changed files with 16 additions and 184 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue