Nukepayload2.SourceGenerators.IgnoresAccessChecksTo 1.1.0

dotnet add package Nukepayload2.SourceGenerators.IgnoresAccessChecksTo --version 1.1.0                
NuGet\Install-Package Nukepayload2.SourceGenerators.IgnoresAccessChecksTo -Version 1.1.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="Nukepayload2.SourceGenerators.IgnoresAccessChecksTo" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nukepayload2.SourceGenerators.IgnoresAccessChecksTo --version 1.1.0                
#r "nuget: Nukepayload2.SourceGenerators.IgnoresAccessChecksTo, 1.1.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.
// Install Nukepayload2.SourceGenerators.IgnoresAccessChecksTo as a Cake Addin
#addin nuget:?package=Nukepayload2.SourceGenerators.IgnoresAccessChecksTo&version=1.1.0

// Install Nukepayload2.SourceGenerators.IgnoresAccessChecksTo as a Cake Tool
#tool nuget:?package=Nukepayload2.SourceGenerators.IgnoresAccessChecksTo&version=1.1.0                

IgnoresAccessChecksTo VB Source Generator (MSBuild)

NuGet

Generates IgnoresAccessChecksTo attributes in VB projects and reference assemblies to allow compile-time access to Friend members. We recommend using PrivateAssets="all" in the package reference to prevent affecting other projects.

Since there's currently no compiler support for this attribute, this package can be used as a workaround. It generates reference assemblies where all the internal types & members become public, and adds a VB file with the attribute and its instances.

Usage

Just add the package and define InternalsAssemblyName items with the assemblies you need access to.

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
    <InternalsAssemblyName Include="AssemblyToGrantAccessTo1" />
    <InternalsAssemblyName Include="AssemblyToGrantAccessTo2" />
    <InternalsAssemblyExcludeTypeName Include="Namespace.TypeName" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="Nukepayload2.SourceGenerators.IgnoresAccessChecksTo" Version="*" PrivateAssets="All" />
  </ItemGroup>

</Project>
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.6.2

    • No dependencies.
  • .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.1.0 50 7/27/2024
1.0.0 265 9/24/2023

Improved incremental build support. The core logics came from "IgnoresAccessChecksToGenerator, version=0.7.0".