ShadowPluginLoader.WinUI 2.4.7

There is a newer version of this package available.
See the version list below for details.
dotnet add package ShadowPluginLoader.WinUI --version 2.4.7
                    
NuGet\Install-Package ShadowPluginLoader.WinUI -Version 2.4.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ShadowPluginLoader.WinUI" Version="2.4.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ShadowPluginLoader.WinUI" Version="2.4.7" />
                    
Directory.Packages.props
<PackageReference Include="ShadowPluginLoader.WinUI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ShadowPluginLoader.WinUI --version 2.4.7
                    
#r "nuget: ShadowPluginLoader.WinUI, 2.4.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ShadowPluginLoader.WinUI@2.4.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ShadowPluginLoader.WinUI&version=2.4.7
                    
Install as a Cake Addin
#tool nuget:?package=ShadowPluginLoader.WinUI&version=2.4.7
                    
Install as a Cake Tool

<div align="right"> 🌍<a href="">English</a> / 中文 </div> <div align="center">

ShadowPluginLoader.WinUI

✨ 在WinUI3中加载插件(拓展) ✨

</div>

<p align="center"> <a href="https://github.com/kitUIN/ShadowPluginLoader.WinUI/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="license"></a> <a href="https://www.nuget.org/packages/ShadowPluginLoader.WinUI"><img src="https://img.shields.io/nuget/v/ShadowPluginLoader.WinUI?style=flat-square" alt="nuget"></a> <a href="https://github.com/kitUIN/ShadowPluginLoader.WinUI/releases"><img src="https://img.shields.io/github/v/release/kitUIN/ShadowPluginLoader.WinUI?style=flat-square" alt="release"></a> </p> <p align="center"> 📖<a href="https://plugin-loader.kituin.fun/zh/">文档</a> · 🐛<a href="https://github.com/kitUIN/ShadowPluginLoader.WinUI/issues/new">提交建议</a>

</p>

✨简介

Windows App SDK上使用插件加载器加载插件

插件内以下内容可以被加载:

  • C#代码
  • 自定义WinUI控件(Page/UserControl)
  • 自定义资源字典(ResourceDictionary)
  • 图片资源(Assets)
  • i18n(Resw)

🚀快速开始

仅需几个步骤即可构建属于你的插件加载器

🧐必要规范

由于特殊的加载模式,我们需要遵循一些代码准则

加载流程

graph TD;
    B[Type]-->A;
    O[IEnumerable&lt;Type&gt;]-->A;
    C[DirectoryInfo]-->A;
    P[ZipFile]-->A;
    A[FileInfo]-->D@{ shape: procs, label: "Load And Sort PluginMetaData"};
    D-->E[Check if PluginMetaData is valid];
    E-->F@{ shape: rounded, label: "Before Load Plugin Event" };
    F-->G[Load Main Plugin];
    G-->H@{ shape: rounded, label: "After Load Plugin Event" };
    H-->I@{ shape: stadium, label: "Finish" };

工具链流程

block-beta
  columns 4
  a[["Name"]] b[["Before Start"]] c[["Before Compile"]] d[["After Compile"]]
  e["SDK"] f["/"]:2 g["Export PluginMeta Define"]
  h["Plugin"] i["Load Define File"] j["Generate PluginMetadata"] k["Package To Zip"]

🥰特别鸣谢

Product Compatible and additional computed target framework versions.
.NET net6.0-windows10.0.17763 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows10.0.17763 is compatible.  net9.0-windows was computed.  net9.0-windows10.0.17763 is compatible.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ShadowPluginLoader.WinUI:

Package Downloads
ShadowViewer.Sdk

✨ ShadowViewer Core | Development SDK✨

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.9 94 1/28/2026
3.1.8 150 1/25/2026
3.1.7 154 1/23/2026
3.1.6 85 1/23/2026
3.1.5 111 1/23/2026
3.1.3 86 1/23/2026
3.1.2 111 1/23/2026
3.1.1 85 1/23/2026
3.1.0 118 1/15/2026
3.0.16 251 12/14/2025
3.0.14 464 12/9/2025
3.0.13 458 11/18/2025
3.0.12 297 11/13/2025
3.0.11 303 11/13/2025
3.0.10 223 10/6/2025
3.0.7 196 10/6/2025
3.0.6 191 10/6/2025
3.0.5 188 10/5/2025
2.6.4 205 5/9/2025
2.4.7 218 4/7/2025
Loading failed