Skip to content

Commit

Permalink
fix: Don't generate reload cookie for non-C# targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Dec 17, 2021
1 parent c26bd89 commit 7977f22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@
</CreateProperty>
</Target>

<Target Name="_GenerateReloadCookie" BeforeTargets="BeforeCompile">
<Target Name="_GenerateReloadCookie" BeforeTargets="BeforeCompile" Condition="'$(DefaultLanguageSourceExtension)'=='.cs'">
<!-- Generate an empty C# file that OmniSharp can pick up when Uno has marked XAML files as modified -->
<WriteLinesToFile File="$(IntermediateOutputPath)\uno.reload.cookie.g.cs" />
<ItemGroup>
Expand Down

0 comments on commit 7977f22

Please sign in to comment.