https://github.com/bepinex/bepinex.assemblypublicizer
https://github.com/bepinex/bepinex.assemblypublicizer
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bepinex/bepinex.assemblypublicizer
- Owner: BepInEx
- License: mit
- Created: 2022-08-04T20:50:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-09T02:16:17.000Z (over 1 year ago)
- Last Synced: 2025-03-24T09:04:27.829Z (about 1 year ago)
- Language: C#
- Size: 47.9 KB
- Stars: 77
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BepInEx.AssemblyPublicizer
[](https://www.nuget.org/packages/BepInEx.AssemblyPublicizer)
[](https://www.nuget.org/packages/BepInEx.AssemblyPublicizer.MSBuild)
[](https://www.nuget.org/packages/BepInEx.AssemblyPublicizer.Cli)
Yet another assembly publicizer/stripper
## Using
### from code
```cs
AssemblyPublicizer.Publicize("./Test.dll", "./Test-publicized.dll");
```
### from console
`dotnet tool install -g BepInEx.AssemblyPublicizer.Cli`
`assembly-publicizer ./Test.dll` - publicizes
`assembly-publicizer ./Test.dll --strip` - publicizes and strips method bodies
`assembly-publicizer ./Test.dll --strip-only` - strips without publicizing
### from msbuild
```xml
```
works with both .NET (generates IgnoresAccessChecksTo attributes) and Mono (AllowUnsafeBlocks)