From d0fe815ae9065887e14528fb1a05f57a0ade24d6 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Mon, 11 Apr 2016 14:01:59 -0500 Subject: [PATCH] Add pretemplates to UpdateFiles script. The pretemplate files can still have CoreFX versions in them, which need to be updated. --- scripts/update-dependencies/UpdateFilesTargets.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/update-dependencies/UpdateFilesTargets.cs b/scripts/update-dependencies/UpdateFilesTargets.cs index 3c59592e2..ec94e39f6 100644 --- a/scripts/update-dependencies/UpdateFilesTargets.cs +++ b/scripts/update-dependencies/UpdateFilesTargets.cs @@ -57,7 +57,9 @@ namespace Microsoft.DotNet.Scripts { List dependencyInfos = c.GetDependencyInfos(); - IEnumerable projectJsonFiles = Directory.GetFiles(Dirs.RepoRoot, "project.json", SearchOption.AllDirectories); + IEnumerable 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)