2025-02-09 03:09:18 +01:00
2023-01-04 08:39:39 +02:00
2022-08-04 22:56:37 +02:00
2022-08-05 20:54:22 +02:00
2025-02-09 03:11:45 +01:00
2022-08-04 22:56:37 +02:00
2024-03-10 02:28:34 +01:00

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)

S
Description
No description provided
Readme MIT
135 KiB
0 Stars 1 Watchers 0 Forks
Languages
C# 100%