Fix #1450 Skip compilation on non-C# projects

This change skips our 'temp' compilation that we do to implement 2-phase
build for defining components in .cshtml when the project is not C# OR
when the project has no .cshtml files.

This should make the rest of the build-time Blazor functionality work
for non-C# projects.

This should also make the build faster when you have the Blazor targets
imported in a C# project with no .cshtml files.
This commit is contained in:
Ryan Nowak 2018-09-20 13:22:59 -07:00
parent 100382bf71
commit f601b6d3d2
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@
$(ResolvedCodeAnalysisRuleSet);
@(AdditionalFiles)"
Outputs="@(_BlazorTempAssembly);$(NonExistentFile)"
Condition="'$(DesignTimeBuild)'!='true'">
Condition="'$(DesignTimeBuild)'!='true' AND '$(Language)'=='C#' AND '@(BlazorDeclaration)' != ''">
<MakeDir Directories="%(_BlazorTempAssembly.RelativeDir)" />