Internal Accessable Compiler
Compile a c# project to a internal accessible dll (for Unity)
com.coffee.internal-accessible-compiler Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/track/internal-accessible-compiler.git README
Internal Accessible Compiler
:warning: NOTE: This project has been integrated into CSharpCompilerSettingsForUnity. We are NOT continuing development in this repository. :warning:
This package generates an 'internal accessible' dll.
In other words, you can internally access to other assemblies without reflection.

<< Description | Install | Usage >>
What's new? See changelog 
Do you want to receive notifications for new releases? Watch this repo 
Support me on GitHub!
Description
About IgnoresAccessChecksToAttribute
No InternalsVisibleTo, no problem – bypassing C# visibility rules with Roslyn
Install
Find Packages/manifest.json in your project and edit it to look like this:
{
"dependencies": {
"com.coffee.internal-accessible-compiler": "https://github.com/mob-sakai/InternalAccessibleCompilerForUnity.git",
...
},
}
To update the package, add/change prefix #version to the target version.
Or, use UpmGitExtension.
Requirement
- Unity 2018.3 or later
- Dot Net 2.1 or later
Usage
Compile AssemblyDefinitionFile to an 'internal accessible' dll
- Select
*.asmdefin project view. - Click Right button and select
Internal Accessible Compiler > Settingin context menu.
- Open
Internal Accessible Compiler Settingand configure compile setting.
- Assembly Names To Access: Target assembly names separated by semicolons to access internally (eg. UnityEditor;UnityEditor.UI)
- OutputDllPath: Output dll path (eg. Assets/Editor/SomeAssembly.dll)
- Press
Compilebutton to start compiling. After compilation, the dll will be automatically imported. - Enjoy!
Demo
A demo project that dynamically changes the text displayed in UnityEditor's title bar. (This package is used in Solution 3.) https://github.com/mob-sakai/MainWindowTitleModifierForUnity
In this class, ApplicationTitleDescriptor, EditorApplication.updateMainWindowTitle and EditorApplication.UpdateMainWindowTitle are internal elements.
However, the class accesses to them without reflection.
For more details, see this article (Japanese)
License
- MIT
Author
See Also
- GitHub page : https://github.com/mob-sakai/InternalAccessibleCompilerForUnity
- Releases : https://github.com/mob-sakai/InternalAccessibleCompilerForUnity/releases
- Issue tracker : https://github.com/mob-sakai/InternalAccessibleCompilerForUnity/issues
- Change log : https://github.com/mob-sakai/InternalAccessibleCompilerForUnity/blob/upm/CHANGELOG.md
- No InternalsVisibleTo, no problem – bypassing C# visibility rules with Roslyn
- Nuget tool version: https://www.nuget.org/packages/InternalAccessibleCompiler
Installs Over Time
Operating Systems
No data yet
Top Countries
No data yet
Git Versions
No data yet
Embed Install Badge
Add an install count badge to your README
[](https://www.pkglnk.dev/pkg/internal-accessible-compiler)<a href="https://www.pkglnk.dev/pkg/internal-accessible-compiler"><img src="https://www.pkglnk.dev/badge/internal-accessible-compiler.svg?style=pkglnk" alt="pkglnk installs"></a>
No comments yet. Be the first!