Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aelij/ignoresaccesscheckstogenerator
Generates reference assemblies where all the internal types & members become public, and applies the IgnoresAccessChecksTo attribute
https://github.com/aelij/ignoresaccesscheckstogenerator
msbuild-task netstandard
Last synced: 5 days ago
JSON representation
Generates reference assemblies where all the internal types & members become public, and applies the IgnoresAccessChecksTo attribute
- Host: GitHub
- URL: https://github.com/aelij/ignoresaccesscheckstogenerator
- Owner: aelij
- License: mit
- Created: 2017-07-21T07:29:52.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T08:12:07.000Z (18 days ago)
- Last Synced: 2024-10-23T04:14:28.074Z (13 days ago)
- Topics: msbuild-task, netstandard
- Language: C#
- Homepage:
- Size: 41 KB
- Stars: 167
- Watchers: 10
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IgnoresAccessChecksTo Generator (MSBuild)
[![NuGet](https://img.shields.io/nuget/v/IgnoresAccessChecksToGenerator.svg?style=flat-square)](https://www.nuget.org/packages/IgnoresAccessChecksToGenerator)
The `IgnoresAccessChecksToAttribute` is the reverse of the `InternalsVisibleToAttribute` - it allows an assembly to declare assemblies whose internals would be visible to it. The attribute class isn't declared in the BCL but is recognized by the CLR (Desktop >= 4.6 and Core), i.e. you can declare it in your code and it would work.
Since there's currently no compiler support for this attribute (I've [submitted a PR](https://github.com/dotnet/roslyn/pull/20870) to Roslyn), this package can be used as a workaround. It **generates reference assemblies where all the internal types & members become public**, and adds a C# file with the attribute and its instances.
## Usage
Just add the package and define `InternalsAssemblyName` items with the assemblies you need access to.
```xml
```