The C# (.NET) Language Module for Plugify facilitates the development of plugins in C# for the Plugify framework. With this module, you can seamlessly integrate C# plugins, allowing dynamic loading and management by the Plugify core.
- C# (.NET) Plugin Support: Write your plugins in C# (.NET) and seamlessly integrate them with the Plugify framework.
- Automatic Exporting: Effortlessly export and import methods between plugins and the language module.
- Initialization and Cleanup: Handle plugin initialization, startup, and cleanup with dedicated module events.
- Interoperability: Communicate with plugins written in other languages through auto-generated interfaces.
Note: All C# (.NET) plugins are hosted within the single domain. This allows for seamless collaboration and interaction between C# plugins without the Plugify framework.
- .NET Runtime (.NET 8.0.3)
- Plugify Framework Installed
You can install the C++ Language Module using the Plugify plugin manager by running the following command:
plg install plugify-module-dotnet
-
Clone this repository:
git clone https://github.com/untrustedmodders/plugify-module-dotnet.git --recursive cd plugify-module-dotnet
-
Build the C# (.NET) language module:
mkdir build && cd build cmake .. cmake --build .
-
Integration with Plugify
Ensure that your C# (.NET) language module is available in the same directory as your Plugify setup.
-
Write C# Plugins
Develop your plugins in C# using the Plugify C# API. Refer to the Plugify C# Plugin Guide for detailed instructions.
-
Build and Install Plugins
Compile your C# plugins and place the assemblies in a directory accessible to the Plugify core.
-
Run Plugify
Start the Plugify framework, and it will dynamically load your C# plugins.
using Plugify;
namespace ExamplePlugin
{
public class SamplePlugin : Plugin
{
public void OnStart()
{
Console.WriteLine(".NET: OnStart");
}
public void OnEnd()
{
Console.WriteLine(".NET: OnEnd");
}
}
}
For comprehensive documentation on writing plugins in C# (.NET) using the Plugify framework, refer to the Plugify Documentation.
Feel free to contribute by opening issues or submitting pull requests. We welcome your feedback and ideas!
This C# (.NET) Language Module for Plugify is licensed under the MIT License.