-
|
Hi, I have library that depends on Grpc.Core package. This package has a targets file that adds assemblies to output How can I exclude grpc_csharp_ext.x86.dll from being packaged? I have tried several combinations of But nothing worked :( |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
|
Ok, given this project: <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<PackageId>GrpcLib</PackageId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Grpc.Core" Version="2.38.1" />
<PackageReference Include="NuGetizer" Version="0.7.2" />
</ItemGroup>
</Project>This is what which matches what's packed, so I'd say it's working as expected. could you perhaps provide a repro? |
Beta Was this translation helpful? Give feedback.
-
|
The related bug for this has shipped and allows you to exclude all these library items with: <PackInference Update="Content" PackExclude="**/*grpc_csharp_ext*.*" /> |
Beta Was this translation helpful? Give feedback.
-
|
Hi, sorry, I'm still struggling with exclusion (grpc included your change in current prerelease package. I added custom target to update it like you demonstrated: Target is executed during both nugetize and msbuild Here is my sample project with targets and rsp so just do |
Beta Was this translation helpful? Give feedback.
-
|
Ok, the works fine now, so I will use this instead of target based exclusion |
Beta Was this translation helpful? Give feedback.



The related bug for this has shipped and allows you to exclude all these library items with: