Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BepInEx/BepInEx.AssemblyPublicizer

Open more actions menu

Repository files navigation

BepInEx.AssemblyPublicizer

NuGet NuGet NuGet

Yet another assembly publicizer/stripper

Using

from code

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

<ItemGroup>
    <PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.2" PrivateAssets="all" />

    <!-- Publicize directly when referencing -->
    <Reference Include=".../TestProject.dll" Publicize="true" />
    <ProjectReference Include="../TestProject/TestProject.csproj" Publicize="true" />
    <PackageReference Include="TestProject" Publicize="true" />

    <!-- Publicize by assembly name -->
    <Publicize Include="TestProject" />
</ItemGroup>

works with both .NET (generates IgnoresAccessChecksTo attributes) and Mono (AllowUnsafeBlocks)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.