Browse Source

Add Web module as `CompiledRazorAssemblyPart`.

Resolve #11183
pull/11190/head
maliming 4 years ago
parent
commit
5dfca00c45
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 2
      templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/MyProjectNameWebTestModule.cs

2
templates/app/aspnet-core/test/MyCompanyName.MyProjectName.Web.Tests/MyProjectNameWebTestModule.cs

@ -27,7 +27,7 @@ namespace MyCompanyName.MyProjectName
{
context.Services.PreConfigure<IMvcBuilder>(builder =>
{
builder.PartManager.ApplicationParts.Add(new AssemblyPart(typeof(MyProjectNameWebModule).Assembly));
builder.PartManager.ApplicationParts.Add(new CompiledRazorAssemblyPart(typeof(MyProjectNameWebModule).Assembly));
});
}

Loading…
Cancel
Save