sucrose0413 / CoolCat

A sample about how to create a dynamic plugins mechanism with ASP.NET Core Mvc at runtime. This sample is based on .NET Core 3.1 and .NET 5

Home Page:https://www.cnblogs.com/lwqlun/p/11343141.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CoolCat

A sample about how to create a dynamic plugins mechanism with ASP.NET Core Mvc based on the AssemblyLoadContext.

This whole project is built under .NET Core 3.1 and .NET 5.

What i will do and what i will not do

I want to build a runtime plugin mechanism based on .NET Core 3.1 and .NET 5. Each plugin will be isolated by a custom AssemlyLoadContext. So the framework allow you to reference same library with different version.

Getting Started

  • Clone the source code
  • Run docker-compose up
  • Install the pre-set modules
  • Start to use the system

How to create and publish a plugin

  • Run dotnet new -i CoolCatModule, it will install the CoolCatModule on your machine
  • Run dotnet new CoolCatModule -n {your plugin name}
  • Build the plugin with VisualStudio 2019 or dotnet publish
  • Package the release files into a zip package

About

A sample about how to create a dynamic plugins mechanism with ASP.NET Core Mvc at runtime. This sample is based on .NET Core 3.1 and .NET 5

https://www.cnblogs.com/lwqlun/p/11343141.html


Languages

Language:C# 76.7%Language:HTML 16.5%Language:CSS 5.4%Language:JavaScript 1.1%Language:TSQL 0.4%