Print an error when Razor targets are invoked from a multitargeting build

This commit is contained in:
Pranav K 2018-01-29 09:53:34 -08:00
parent c7d376dc61
commit 766862390b
1 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
<Project>
<Import Project="..\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.targets" />
</Project>
<Target Name="RazorCompile">
<Error Text="The 'RazorCompile' target is not supported without specifying a target framework. The current project targets multiple frameworks, please specify a framework to execute this target." />
</Target>
<Target Name="RazorGenerate">
<Error Text="The 'RazorGenerate' target is not supported without specifying a target framework. The current project targets multiple frameworks, please specify a framework to execute this target." />
</Target>
</Project>