Xtansia.IvtPatch
1.0.0
dotnet add package Xtansia.IvtPatch --version 1.0.0
NuGet\Install-Package Xtansia.IvtPatch -Version 1.0.0
<PackageReference Include="Xtansia.IvtPatch" Version="1.0.0" />
<PackageVersion Include="Xtansia.IvtPatch" Version="1.0.0" />
<PackageReference Include="Xtansia.IvtPatch" />
paket add Xtansia.IvtPatch --version 1.0.0
#r "nuget: Xtansia.IvtPatch, 1.0.0"
#:package Xtansia.IvtPatch@1.0.0
#addin nuget:?package=Xtansia.IvtPatch&version=1.0.0
#tool nuget:?package=Xtansia.IvtPatch&version=1.0.0
Xtansia.IvtPatch
An MSBuild task to work around the issue of ILLink always trimming InternalsVisibleTo attributes which are "unresolvable" (https://github.com/dotnet/runtime/issues/92582).
This issue manifests itself when using libraries such as Utf8Json which uses InternalsVisibleTo to expose internal types to assemblies dynamically generated at runtime.
The task will copy the InternalsVisibleTo attributes from the original assembly to the trimmed assembly after ILLink has run.
Usage
Add the following to your project file:
<Project>
<ItemGroup>
<PackageReference Include="Xtansia.IvtPatch" Version="1.0.0" />
</ItemGroup>
<ItemGroup>
<IvtPatchAssembly Include="Utf8Json" />
</ItemGroup>
</Project>
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 10,885 | 9/27/2023 |