Skip to content

Commit ee9a060

Browse files
committed
Enable Razor runtime compilation
1 parent f65d967 commit ee9a060

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Nikolay Kostov
3+
Copyright (c) 2016-2020 Nikolay Kostov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ASP.NET-MVC-Template
1+
# ASP.NET Core Template
22

33
A ready-to-use template for ASP.NET Core with repositories, services, models mapping, DI and StyleCop warnings fixed.
44

src/Web/AspNetCoreTemplate.Web/AspNetCoreTemplate.Web.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.3" />
18+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.3" />
1819
<PackageReference Include="BuildBundlerMinifier" Version="3.2.447" />
1920
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="2.1.76" />
2021
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="3.1.5" />

src/Web/AspNetCoreTemplate.Web/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void ConfigureServices(IServiceCollection services)
5151
options =>
5252
{
5353
options.Filters.Add(new AutoValidateAntiforgeryTokenAttribute());
54-
});
54+
}).AddRazorRuntimeCompilation();
5555
services.AddRazorPages();
5656

5757
services.AddSingleton(this.configuration);

0 commit comments

Comments
 (0)