Skip to content

Commit 66cea00

Browse files
authored
Update PackageReference conditions for CSharp
Support old dependency for .NET 8
1 parent e796b40 commit 66cea00

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/DynamoDBGenerator.SourceGenerator/DynamoDBGenerator.SourceGenerator.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@
2121
</PropertyGroup>
2222

2323
<ItemGroup>
24-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all"/>
24+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all" Condition="'$(TargetFramework)' == 'net10.0'" />
25+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.14.0" PrivateAssets="all" Condition="'$(TargetFramework)' == 'net8.0'" />
2526
</ItemGroup>
2627

27-
<ItemGroup>
28-
<!-- Is required in order to pack the analyzer correctly with NuGet -->
29-
<None Include="$(OutputPath)\*.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false"/>
30-
</ItemGroup>
31-
32-
3328
</Project>

0 commit comments

Comments
 (0)