See: https://github.com/dotnet/sdk/pull/2800 The SDK now has a setting to control this. We can remove our code here: https://github.com/aspnet/AspNetCore-Tooling/blob/master/src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets#L682
See: dotnet/sdk#2800
The SDK now has a setting to control this. We can remove our code here: https://github.com/aspnet/AspNetCore-Tooling/blob/master/src/Razor/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Sdk.Razor.CurrentVersion.targets#L682