Remove project.json in template to avoid restore
This commit is contained in:
parent
a65054d947
commit
89ca48bd05
4 changed files with 8 additions and 2 deletions
|
@ -19,6 +19,12 @@ namespace Microsoft.DotNet.Tools.New
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// filename.extension.template
|
||||||
|
if (parts.Length > 2 && string.Equals("template", parts[parts.Length - 1], StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
return parts[parts.Length - 3] + "." + parts[parts.Length - 2];
|
||||||
|
}
|
||||||
|
|
||||||
// filename.extension
|
// filename.extension
|
||||||
return parts[parts.Length - 2] + "." + parts[parts.Length - 1];
|
return parts[parts.Length - 2] + "." + parts[parts.Length - 1];
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,10 +10,10 @@
|
||||||
"resource": [
|
"resource": [
|
||||||
"commands/dotnet-new/CSharp_Console/NuGet.Config",
|
"commands/dotnet-new/CSharp_Console/NuGet.Config",
|
||||||
"commands/dotnet-new/CSharp_Console/Program.cs",
|
"commands/dotnet-new/CSharp_Console/Program.cs",
|
||||||
"commands/dotnet-new/CSharp_Console/project.json",
|
"commands/dotnet-new/CSharp_Console/project.json.template",
|
||||||
"commands/dotnet-new/FSharp_Console/NuGet.config",
|
"commands/dotnet-new/FSharp_Console/NuGet.config",
|
||||||
"commands/dotnet-new/FSharp_Console/Program.fs",
|
"commands/dotnet-new/FSharp_Console/Program.fs",
|
||||||
"commands/dotnet-new/FSharp_Console/project.json"
|
"commands/dotnet-new/FSharp_Console/project.json.template"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Newtonsoft.Json": "7.0.1",
|
"Newtonsoft.Json": "7.0.1",
|
||||||
|
|
Loading…
Reference in a new issue