Skip to content

Commit

Permalink
fix: Force use Uno's Roslyn hosted generators instead of Uno.SourceGe…
Browse files Browse the repository at this point in the history
…neration tasks (#2199)
  • Loading branch information
jeromelaban committed Aug 8, 2022
1 parent 6f8fc4d commit f2a87c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions samples/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,12 @@
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.9.0" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<!--
Force use Uno's Roslyn hosted generators instead of Uno.SourceGeneration tasks, even when LangVersion below 9.0.
The original issue is caused by https://github.com/unoplatform/uno/issues/9297
-->
<UnoUIUseRoslynSourceGenerators>true</UnoUIUseRoslynSourceGenerators>
</PropertyGroup>

</Project>

0 comments on commit f2a87c4

Please sign in to comment.