Skip to content

Commit

Permalink
Remove razor runtime complilation to enable hot reload. It might not …
Browse files Browse the repository at this point in the history
…work for runtime added theme. But hot reload has higher priority
  • Loading branch information
thiennn committed Nov 11, 2021
1 parent 6ace241 commit caee33e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public static IServiceCollection AddCustomizedMvc(this IServiceCollection servic
o.EnableEndpointRouting = false;
o.ModelBinderProviders.Insert(0, new InvariantDecimalModelBinderProvider());
})
.AddRazorRuntimeCompilation()
.AddViewLocalization()
.AddModelBindingMessagesLocalizer(services)
.AddDataAnnotationsLocalization(o =>
Expand Down
2 changes: 0 additions & 2 deletions src/SimplCommerce.WebHost/SimplCommerce.WebHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<TargetFramework>net6.0</TargetFramework>
<UserSecretsId>aspnet-Modular.WebHost-dca604fa-ee10-4a6c-8e7d-8cc79dca8c8f</UserSecretsId>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
<MvcRazorCompileOnPublish>false</MvcRazorCompileOnPublish>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>

Expand Down Expand Up @@ -62,7 +61,6 @@
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit caee33e

Please sign in to comment.