C#: Suppress NU5128 warning

Suppress dependencies of SourceGenerators package to fix NU5128.
This commit is contained in:
Raul Santos 2023-07-15 15:25:37 +02:00
parent 83cc5d4914
commit f2e9cbf9e8
No known key found for this signature in database
GPG Key ID: B532473AE3A803E4

View File

@ -18,6 +18,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<!-- Do not include the generator as a lib dependency --> <!-- Do not include the generator as a lib dependency -->
<IncludeBuildOutput>false</IncludeBuildOutput> <IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" PrivateAssets="all" /> <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" PrivateAssets="all" />