From c5f153fbf75ebda9cac343022b0545ad5959f312 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Mon, 4 May 2015 15:47:08 -0700 Subject: [PATCH] Get builds working better within VS (temporary fix?); disable pre-compilation - remove `RazorPreCompilation.cs` files from all but the PrecompilationWebSite - related to #2498 but not addressing that issue since pre-compilation is what that site is about --- .../preprocess/RazorPreCompilation.cs | 21 ------------------- .../preprocess/RazorPreCompilation.cs | 21 ------------------- 2 files changed, 42 deletions(-) delete mode 100644 samples/MvcSample.Web/compiler/preprocess/RazorPreCompilation.cs delete mode 100644 samples/TagHelperSample.Web/compiler/preprocess/RazorPreCompilation.cs diff --git a/samples/MvcSample.Web/compiler/preprocess/RazorPreCompilation.cs b/samples/MvcSample.Web/compiler/preprocess/RazorPreCompilation.cs deleted file mode 100644 index 1f3ae6826c..0000000000 --- a/samples/MvcSample.Web/compiler/preprocess/RazorPreCompilation.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNet.Mvc; -using Microsoft.Framework.Runtime; - -namespace MvcSample.Web -{ - public class RazorPreCompilation : RazorPreCompileModule - { - public RazorPreCompilation(IServiceProvider provider, - IApplicationEnvironment applicationEnvironment) - : base(provider) - { - GenerateSymbols = string.Equals(applicationEnvironment.Configuration, - "debug", - StringComparison.OrdinalIgnoreCase); - } - } -} \ No newline at end of file diff --git a/samples/TagHelperSample.Web/compiler/preprocess/RazorPreCompilation.cs b/samples/TagHelperSample.Web/compiler/preprocess/RazorPreCompilation.cs deleted file mode 100644 index cef5303a35..0000000000 --- a/samples/TagHelperSample.Web/compiler/preprocess/RazorPreCompilation.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. - -using System; -using Microsoft.AspNet.Mvc; -using Microsoft.Framework.Runtime; - -namespace TagHelperSample.Web -{ - public class TagHelperPrecompilation : RazorPreCompileModule - { - public TagHelperPrecompilation(IServiceProvider provider, - IApplicationEnvironment applicationEnvironment) - : base(provider) - { - GenerateSymbols = string.Equals(applicationEnvironment.Configuration, - "debug", - StringComparison.OrdinalIgnoreCase); - } - } -} \ No newline at end of file