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
<PackageReference Include="Nukepayload2.SourceGenerators.IgnoresAccessChecksTo" Version="1.1.0" />
paket add Nukepayload2.SourceGenerators.IgnoresAccessChecksTo --version 1.1.0
#r "nuget: Nukepayload2.SourceGenerators.IgnoresAccessChecksTo, 1.1.0"
// 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)
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>
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.
Improved incremental build support. The core logics came from "IgnoresAccessChecksToGenerator, version=0.7.0".