Add pretemplates to UpdateFiles script.
The pretemplate files can still have CoreFX versions in them, which need to be updated.
This commit is contained in:
parent
bdea82e7d5
commit
d0fe815ae9
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ namespace Microsoft.DotNet.Scripts
|
|||
{
|
||||
List<DependencyInfo> dependencyInfos = c.GetDependencyInfos();
|
||||
|
||||
IEnumerable<string> projectJsonFiles = Directory.GetFiles(Dirs.RepoRoot, "project.json", SearchOption.AllDirectories);
|
||||
IEnumerable<string> projectJsonFiles = Enumerable.Union(
|
||||
Directory.GetFiles(Dirs.RepoRoot, "project.json", SearchOption.AllDirectories),
|
||||
Directory.GetFiles(Path.Combine(Dirs.RepoRoot, @"src\dotnet\commands\dotnet-new"), "project.json.pretemplate", SearchOption.AllDirectories));
|
||||
|
||||
JObject projectRoot;
|
||||
foreach (string projectJsonFile in projectJsonFiles)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue