Reacting to Mvc changes

This commit is contained in:
Pranav K 2016-09-14 15:30:23 -07:00
parent 3b45ea5c27
commit 88fa650138
2 changed files with 5 additions and 4 deletions

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design.Internal
return 1;
}
var precompileAssemblyName = $"{ApplicationNameOption.Value()}{AssemblyPart.PrecompiledViewsAssemblySuffix}";
var precompileAssemblyName = $"{ApplicationNameOption.Value()}{ViewsFeatureProvider.PrecompiledViewsAssemblySuffix}";
var compilation = CompileViews(results, precompileAssemblyName);
var resources = GetResources(results);

View File

@ -7,6 +7,7 @@ using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.AspNetCore.Mvc.ApplicationParts;
using Microsoft.AspNetCore.Mvc.Razor.Compilation;
using Microsoft.AspNetCore.Mvc.Razor.Internal;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
@ -39,11 +40,11 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design.Internal
}
var factoryContent = $@"
namespace {AssemblyPart.ViewInfoContainerNamespace}
namespace {ViewsFeatureProvider.ViewInfoContainerNamespace}
{{
public class {AssemblyPart.ViewInfoContainerTypeName} : global::{typeof(ViewInfoContainer).FullName}
public class {ViewsFeatureProvider.ViewInfoContainerTypeName} : global::{typeof(ViewInfoContainer).FullName}
{{
public {AssemblyPart.ViewInfoContainerTypeName}() : base(new[]
public {ViewsFeatureProvider.ViewInfoContainerTypeName}() : base(new[]
{{
{precompiledViewsArray}
}})