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
This commit is contained in:
parent
ab4cd5c4c4
commit
3fbead0ce8
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue