Skip to content

Commit

Permalink
Disable EventSource generator in design-time builds (#50741)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Apr 6, 2021
1 parent c0a710f commit 29c911e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<EnableDefaultItems>false</EnableDefaultItems>
Expand Down Expand Up @@ -300,7 +300,11 @@
<!-- Include additional sources shared files in the compilation -->
<Import Project="$(LibrariesProjectRoot)\System.Private.CoreLib\src\System.Private.CoreLib.Shared.projitems" Label="Shared" />

<ItemGroup>
<!--
TODO https:/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'">
<ProjectReference Include="$(LibrariesProjectRoot)\System.Private.CoreLib\generators\System.Private.CoreLib.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>

Expand Down

0 comments on commit 29c911e

Please sign in to comment.