aspnet / Razor

[Archived] Parser and code generator for CSHTML files used in view pages for MVC web apps. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
883 stars 226 forks source link

Razor.SDK defines DotNetCoreRazorConfiguration project capability for <= 3.0 projects #2751

Closed NTaylorMullen closed 5 years ago

NTaylorMullen commented 5 years ago

Line of interest: https://github.com/aspnet/Razor/blob/master/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.DesignTime.targets#L29

Basically, in pre-3.0 world the DotNetCoreRazorConfiguration was either defined by Razor.DesignTime or not at all. With the SDK as it is currently we see every project as a >= 2.1 project (even when no Razor is available).

NTaylorMullen commented 5 years ago

https://github.com/aspnet/AspNetCore-Tooling/commit/8d733ecc0422a56ae8dfc7dd296d475bb8b3d790