()
+ .Build();
+
+ host.Run();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkNeitherUsed/Startup.cs b/testapps/ApplicationWithRazorSdkNeitherUsed/Startup.cs
new file mode 100644
index 0000000000..4b06309f6d
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkNeitherUsed/Startup.cs
@@ -0,0 +1,21 @@
+using Microsoft.AspNetCore.Builder;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
+
+namespace ApplicationWithRazorSdkNeitherUsed
+{
+ public class Startup
+ {
+ public void ConfigureServices(IServiceCollection services)
+ {
+ // Add framework services.
+ services.AddMvc();
+ }
+
+ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
+ {
+ loggerFactory.AddConsole();
+ app.UseMvcWithDefaultRoute();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Home/About.cshtml b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Home/About.cshtml
new file mode 100644
index 0000000000..bbc0672575
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Home/About.cshtml
@@ -0,0 +1,8 @@
+@{
+ Layout = "../Shared/_Layout.cshtml";
+ ViewData["Title"] = "About";
+}
+@ViewData["Title"].
+@ViewData["Message"]
+
+Use this area to provide additional information.
diff --git a/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Home/Index.cshtml b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Home/Index.cshtml
new file mode 100644
index 0000000000..d29ab9cb6e
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Home/Index.cshtml
@@ -0,0 +1,6 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+@GetType().AssemblyQualifiedName
+Hello from Index!
\ No newline at end of file
diff --git a/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Shared/_Layout.cshtml b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000000..4c909415a4
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/Shared/_Layout.cshtml
@@ -0,0 +1,6 @@
+
+
+
+ @RenderBody()
+
+
\ No newline at end of file
diff --git a/testapps/ApplicationWithRazorSdkNeitherUsed/Views/_ViewImports.cshtml b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/_ViewImports.cshtml
new file mode 100644
index 0000000000..d320fb1cc8
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/_ViewImports.cshtml
@@ -0,0 +1,2 @@
+@using ApplicationWithRazorSdkNeitherUsed
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/testapps/ApplicationWithRazorSdkNeitherUsed/Views/_ViewStart.cshtml b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/_ViewStart.cshtml
new file mode 100644
index 0000000000..1b4f3a0748
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkNeitherUsed/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "Shared/_Layout.cshtml";
+}
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/ApplicationWithRazorSdkPrecompilationUsed.csproj b/testapps/ApplicationWithRazorSdkPrecompilationUsed/ApplicationWithRazorSdkPrecompilationUsed.csproj
new file mode 100644
index 0000000000..322c04a44e
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/ApplicationWithRazorSdkPrecompilationUsed.csproj
@@ -0,0 +1,23 @@
+
+
+
+ $(StandardTestAppTfms)
+
+
+ true
+
+
+ ApplicationWithRazorSdkPrecompilationUsed.Views
+
+
+
+
+
+
+
+
+
+
+
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Controllers/HomeController.cs b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Controllers/HomeController.cs
new file mode 100644
index 0000000000..3a08839984
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Controllers/HomeController.cs
@@ -0,0 +1,19 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace ApplicationWithRazorSdkPrecompilationUsed.Controllers
+{
+ public class HomeController : Controller
+ {
+ public IActionResult Index()
+ {
+ return View("Views/Home/Index.cshtml");
+ }
+
+ public IActionResult About()
+ {
+ ViewData["Message"] = "Your application description page.";
+
+ return View();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Program.cs b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Program.cs
new file mode 100644
index 0000000000..96af521013
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Program.cs
@@ -0,0 +1,26 @@
+using System.IO;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+
+namespace ApplicationWithRazorSdkPrecompilationUsed
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ var config = new ConfigurationBuilder()
+ .AddCommandLine(args)
+ .AddEnvironmentVariables(prefix: "ASPNETCORE_")
+ .Build();
+
+ var host = new WebHostBuilder()
+ .UseConfiguration(config)
+ .UseKestrel()
+ .UseContentRoot(Directory.GetCurrentDirectory())
+ .UseStartup()
+ .Build();
+
+ host.Run();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Startup.cs b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Startup.cs
new file mode 100644
index 0000000000..16c835e52d
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Startup.cs
@@ -0,0 +1,21 @@
+using Microsoft.AspNetCore.Builder;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
+
+namespace ApplicationWithRazorSdkPrecompilationUsed
+{
+ public class Startup
+ {
+ public void ConfigureServices(IServiceCollection services)
+ {
+ // Add framework services.
+ services.AddMvc();
+ }
+
+ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
+ {
+ loggerFactory.AddConsole();
+ app.UseMvcWithDefaultRoute();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Home/About.cshtml b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Home/About.cshtml
new file mode 100644
index 0000000000..bbc0672575
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Home/About.cshtml
@@ -0,0 +1,8 @@
+@{
+ Layout = "../Shared/_Layout.cshtml";
+ ViewData["Title"] = "About";
+}
+@ViewData["Title"].
+@ViewData["Message"]
+
+Use this area to provide additional information.
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Home/Index.cshtml b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Home/Index.cshtml
new file mode 100644
index 0000000000..b2bf7cf3d1
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Home/Index.cshtml
@@ -0,0 +1,6 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+@GetType().Assembly.FullName
+Hello from Index!
\ No newline at end of file
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Shared/_Layout.cshtml b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000000..4c909415a4
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/Shared/_Layout.cshtml
@@ -0,0 +1,6 @@
+
+
+
+ @RenderBody()
+
+
\ No newline at end of file
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/_ViewImports.cshtml b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/_ViewImports.cshtml
new file mode 100644
index 0000000000..cde83e7865
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/_ViewImports.cshtml
@@ -0,0 +1,2 @@
+@using ApplicationWithRazorSdkPrecompilationUsed
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/_ViewStart.cshtml b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/_ViewStart.cshtml
new file mode 100644
index 0000000000..1b4f3a0748
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkPrecompilationUsed/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "Shared/_Layout.cshtml";
+}
diff --git a/testapps/ApplicationWithRazorSdkUsed/ApplicationWithRazorSdkUsed.csproj b/testapps/ApplicationWithRazorSdkUsed/ApplicationWithRazorSdkUsed.csproj
new file mode 100644
index 0000000000..d97fb72b16
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/ApplicationWithRazorSdkUsed.csproj
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+ $(StandardTestAppTfms)
+
+
+ true
+
+
+ ApplicationWithRazorSdkUsed.Views
+
+
+
+
+
+
+
+
+
+
+
diff --git a/testapps/ApplicationWithRazorSdkUsed/Controllers/HomeController.cs b/testapps/ApplicationWithRazorSdkUsed/Controllers/HomeController.cs
new file mode 100644
index 0000000000..71fe569fa3
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Controllers/HomeController.cs
@@ -0,0 +1,19 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace ApplicationWithRazorSdkUsed.Controllers
+{
+ public class HomeController : Controller
+ {
+ public IActionResult Index()
+ {
+ return View("Views/Home/Index.cshtml");
+ }
+
+ public IActionResult About()
+ {
+ ViewData["Message"] = "Your application description page.";
+
+ return View();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkUsed/Program.cs b/testapps/ApplicationWithRazorSdkUsed/Program.cs
new file mode 100644
index 0000000000..c0db031636
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Program.cs
@@ -0,0 +1,26 @@
+using System.IO;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+
+namespace ApplicationWithRazorSdkUsed
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ var config = new ConfigurationBuilder()
+ .AddCommandLine(args)
+ .AddEnvironmentVariables(prefix: "ASPNETCORE_")
+ .Build();
+
+ var host = new WebHostBuilder()
+ .UseConfiguration(config)
+ .UseKestrel()
+ .UseContentRoot(Directory.GetCurrentDirectory())
+ .UseStartup()
+ .Build();
+
+ host.Run();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkUsed/Startup.cs b/testapps/ApplicationWithRazorSdkUsed/Startup.cs
new file mode 100644
index 0000000000..8c6e88ed12
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Startup.cs
@@ -0,0 +1,21 @@
+using Microsoft.AspNetCore.Builder;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
+
+namespace ApplicationWithRazorSdkUsed
+{
+ public class Startup
+ {
+ public void ConfigureServices(IServiceCollection services)
+ {
+ // Add framework services.
+ services.AddMvc();
+ }
+
+ public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
+ {
+ loggerFactory.AddConsole();
+ app.UseMvcWithDefaultRoute();
+ }
+ }
+}
diff --git a/testapps/ApplicationWithRazorSdkUsed/Views/Home/About.cshtml b/testapps/ApplicationWithRazorSdkUsed/Views/Home/About.cshtml
new file mode 100644
index 0000000000..bbc0672575
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Views/Home/About.cshtml
@@ -0,0 +1,8 @@
+@{
+ Layout = "../Shared/_Layout.cshtml";
+ ViewData["Title"] = "About";
+}
+@ViewData["Title"].
+@ViewData["Message"]
+
+Use this area to provide additional information.
diff --git a/testapps/ApplicationWithRazorSdkUsed/Views/Home/Index.cshtml b/testapps/ApplicationWithRazorSdkUsed/Views/Home/Index.cshtml
new file mode 100644
index 0000000000..b2bf7cf3d1
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Views/Home/Index.cshtml
@@ -0,0 +1,6 @@
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+@GetType().Assembly.FullName
+Hello from Index!
\ No newline at end of file
diff --git a/testapps/ApplicationWithRazorSdkUsed/Views/Shared/_Layout.cshtml b/testapps/ApplicationWithRazorSdkUsed/Views/Shared/_Layout.cshtml
new file mode 100644
index 0000000000..4c909415a4
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Views/Shared/_Layout.cshtml
@@ -0,0 +1,6 @@
+
+
+
+ @RenderBody()
+
+
\ No newline at end of file
diff --git a/testapps/ApplicationWithRazorSdkUsed/Views/_ViewImports.cshtml b/testapps/ApplicationWithRazorSdkUsed/Views/_ViewImports.cshtml
new file mode 100644
index 0000000000..c384203c5b
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Views/_ViewImports.cshtml
@@ -0,0 +1,2 @@
+@using ApplicationWithRazorSdkUsed
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
diff --git a/testapps/ApplicationWithRazorSdkUsed/Views/_ViewStart.cshtml b/testapps/ApplicationWithRazorSdkUsed/Views/_ViewStart.cshtml
new file mode 100644
index 0000000000..1b4f3a0748
--- /dev/null
+++ b/testapps/ApplicationWithRazorSdkUsed/Views/_ViewStart.cshtml
@@ -0,0 +1,3 @@
+@{
+ Layout = "Shared/_Layout.cshtml";
+}
diff --git a/testapps/Directory.Build.props b/testapps/Directory.Build.props
index 35e9c46835..70cec336b5 100644
--- a/testapps/Directory.Build.props
+++ b/testapps/Directory.Build.props
@@ -15,4 +15,6 @@
false