Skip to content

Commit

Permalink
Address feedback from #79828. (#80509)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Jan 12, 2023
1 parent 3f03037 commit b0eee49
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<Import Project="System.Text.Json.TestLibrary.targets" />

<ItemGroup>
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
<!-- The Roslyn4.4 project uses multi-targeting to enable nullability annotations,
so we need to explicitly reference the ns2.0 TFM used by the production source generator -->
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" SetTargetFramework="TargetFramework=netstandard2.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<Import Project="System.Text.Json.SourceGeneration.Tests.targets" />

<ItemGroup>
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" SetTargetFramework="TargetFramework=netstandard2.0" SkipGetTargetFrameworkProperties="true" />
<!-- The Roslyn4.4 project uses multi-targeting to enable nullability annotations,
so we need to explicitly reference the ns2.0 TFM used by the production source generator -->
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" SetTargetFramework="TargetFramework=netstandard2.0" />
<ProjectReference Include="..\System.Text.Json.SourceGeneration.TestLibrary\System.Text.Json.TestLibrary.Roslyn4.4.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<Import Project="System.Text.Json.SourceGeneration.Unit.Tests.targets" />

<ItemGroup>
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" />
<!-- The Roslyn4.4 project uses multi-targeting to enable nullability annotations,
so we need to explicitly reference the ns2.0 TFM used by the production source generator -->
<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" SetTargetFramework="TargetFramework=netstandard2.0" />
</ItemGroup>
</Project>

0 comments on commit b0eee49

Please sign in to comment.