From 7f725e099c9eaf5fb0c7c709ded50df19b366331 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 2 Jan 2019 15:49:41 -0800 Subject: [PATCH] Pass filekind through the workspace layer This commit enables us to initialize projects with the correct file kind, thus allowing mixed views and components in the same project. This isn't hooked up to MSBuild yet, so for now nothing will initialize this code with the correct file kind. \n\nCommit migrated from https://github.com/dotnet/aspnetcore-tooling/commit/7216d18cfbe078d62ff2d6d42daae7ba8b6873dc --- .../ProjectSystem/ProjectSnapshotManagerBenchmarkBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Razor/perf/Microsoft.AspNetCore.Razor.Performance/ProjectSystem/ProjectSnapshotManagerBenchmarkBase.cs b/src/Razor/perf/Microsoft.AspNetCore.Razor.Performance/ProjectSystem/ProjectSnapshotManagerBenchmarkBase.cs index 580ddd1572..aab2fc4527 100644 --- a/src/Razor/perf/Microsoft.AspNetCore.Razor.Performance/ProjectSystem/ProjectSnapshotManagerBenchmarkBase.cs +++ b/src/Razor/perf/Microsoft.AspNetCore.Razor.Performance/ProjectSystem/ProjectSnapshotManagerBenchmarkBase.cs @@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Razor.Performance for (var i = 0; i < Documents.Length; i++) { var filePath = Path.Combine(projectRoot, "Views", "Home", $"View00{i % 4}.cshtml"); - Documents[i] = new HostDocument(filePath, $"/Views/Home/View00{i}.cshtml"); + Documents[i] = new HostDocument(filePath, $"/Views/Home/View00{i}.cshtml", FileKinds.Legacy); } var tagHelpers = Path.Combine(root.FullName, "benchmarks", "Microsoft.AspNetCore.Razor.Performance", "taghelpers.json");