Reacting to Mvc changes
This commit is contained in:
parent
3b45ea5c27
commit
88fa650138
|
|
@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design.Internal
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
var precompileAssemblyName = $"{ApplicationNameOption.Value()}{AssemblyPart.PrecompiledViewsAssemblySuffix}";
|
var precompileAssemblyName = $"{ApplicationNameOption.Value()}{ViewsFeatureProvider.PrecompiledViewsAssemblySuffix}";
|
||||||
var compilation = CompileViews(results, precompileAssemblyName);
|
var compilation = CompileViews(results, precompileAssemblyName);
|
||||||
var resources = GetResources(results);
|
var resources = GetResources(results);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ using System.Reflection;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.AspNetCore.Mvc.ApplicationParts;
|
using Microsoft.AspNetCore.Mvc.ApplicationParts;
|
||||||
|
using Microsoft.AspNetCore.Mvc.Razor.Compilation;
|
||||||
using Microsoft.AspNetCore.Mvc.Razor.Internal;
|
using Microsoft.AspNetCore.Mvc.Razor.Internal;
|
||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
using Microsoft.CodeAnalysis.CSharp;
|
using Microsoft.CodeAnalysis.CSharp;
|
||||||
|
|
@ -39,11 +40,11 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design.Internal
|
||||||
}
|
}
|
||||||
|
|
||||||
var factoryContent = $@"
|
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}
|
{precompiledViewsArray}
|
||||||
}})
|
}})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue