Xtansia.IvtPatch 1.0.0

dotnet add package Xtansia.IvtPatch --version 1.0.0
                    
NuGet\Install-Package Xtansia.IvtPatch -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xtansia.IvtPatch" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xtansia.IvtPatch" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Xtansia.IvtPatch" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xtansia.IvtPatch --version 1.0.0
                    
#r "nuget: Xtansia.IvtPatch, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xtansia.IvtPatch@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xtansia.IvtPatch&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Xtansia.IvtPatch&version=1.0.0
                    
Install as a Cake Tool

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>
There are no supported framework assets in this package.

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