Skip to content

Commit

Permalink
Enable corelib source generator in design time (#69235)
Browse files Browse the repository at this point in the history
This should be fixed with the usage of an incremental source generator and VS2022, based on #50741 (comment).
  • Loading branch information
ViktorHofer authored May 12, 2022
1 parent e9dbc75 commit 3edb959
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,7 @@
<!-- Include additional sources shared files in the compilation -->
<Import Project="$(LibrariesProjectRoot)\System.Private.CoreLib\src\System.Private.CoreLib.Shared.projitems" Label="Shared" />

<!--
TODO https://github.com/dotnet/roslyn/pull/51964: EventSource generator is currently disabled for design time builds as it is
causing impactful slowdowns while typing in the Corelib project.
-->
<ItemGroup Condition="'$(DesignTimeBuild)'!='true' or '$(SlnGenMainProject)' != ''">
<ItemGroup>
<ProjectReference Include="$(LibrariesProjectRoot)\System.Private.CoreLib\gen\System.Private.CoreLib.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

Expand Down

0 comments on commit 3edb959

Please sign in to comment.