OSharp.Plugin.MobileApp
10.0.3
dotnet add package OSharp.Plugin.MobileApp --version 10.0.3
NuGet\Install-Package OSharp.Plugin.MobileApp -Version 10.0.3
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="OSharp.Plugin.MobileApp" Version="10.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OSharp.Plugin.MobileApp" Version="10.0.3" />
<PackageReference Include="OSharp.Plugin.MobileApp" />
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 OSharp.Plugin.MobileApp --version 10.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OSharp.Plugin.MobileApp, 10.0.3"
#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 OSharp.Plugin.MobileApp@10.0.3
#: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=OSharp.Plugin.MobileApp&version=10.0.3
#tool nuget:?package=OSharp.Plugin.MobileApp&version=10.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OSharp.Plugin.Core
简洁的插件核心库,提供插件加载、注册与基础扩展点(示例库)。该包主要用于在 .NET 项目中集成插件机制与扩展点。
功能
- 插件发现与加载
- 插件生命周期管理
- 基础扩展点接口与示例实现
安装
从 NuGet 安装(替换为实际包名):
# 使用 dotnet CLI
dotnet add package OSharp.Plugin.Core --version x.y.z
# 使用 NuGet 包管理器控制台
Install-Package OSharp.Plugin.Core -Version x.y.z
using OSharp.Plugin.Core;
// 根据库的实际 API 调整以下示例
var manager = new PluginManager(); // 示例构造
manager.LoadPlugins("Plugins"); // 从指定目录加载插件
manager.InitializeAll();
OSharp.Plugin.MobileApp
简要说明
OSharp.Plugin.MobileApp 提供移动端(Mobile App)相关的后台支持与服务适配,例如 API 适配、第三方平台(如微信、推送服务)、AI 平台集成与移动端特定设置。该插件把移动应用常见需求封装为可插拔模块,方便主应用在不改动核心代码的前提下添加移动端能力。
主要功能
- 移动端专用的 API 适配与控制器
- 第三方平台集成(示例:微信、推送服务、第三方登录)
- 移动端配置管理(如推送证书、微信配置)
- 常用服务:短信/验证码、文件上传、AI 平台适配(如插件内的 AiPlatforms)
目录结构(概要)
- Controllers/ —— 移动端相关控制器
- CommonService/ —— 与移动端交互的通用服务
- AiPlatforms/ —— AI 平台集成适配层
- Settings/ —— 插件配置类与默认值
- Wechat/ —— 微信相关实现(若存在)
安装与引用
- 项目引用(开发模式)
# 在主项目目录执行
dotnet add reference ../Plugins/OSharp.Plugin.MobileApp/OSharp.Plugin.MobileApp.csproj
- NuGet(发布后)
dotnet add package OSharp.Plugin.MobileApp --version x.y.z
集成要点
控制器发现与服务注册
services.AddApplicationPart(typeof(SomeMobileController).Assembly); services.AddMobileAppServices(Configuration);
开发与调试
- 将插件作为项目引用加入主解决方案,启动主项目进行断点调试。
- 对于第三方平台(如微信、推送),建议使用测试/沙箱账号,或使用模拟适配器进行本地开发。
示例
- 发送推送/消息、调用 AI 平台进行文本/图像处理等功能请参考插件内
AiPlatforms/与CommonService/中的实现。
贡献
- 提交 Issue 描述需求或 bug,Fork-> 新分支 → 提交 PR。
许可证
详见仓库根目录的 LICENSE 文件。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Cnblogs.DashScope.AspNetCore (>= 0.9.0)
- OSharp.Authorization.Datas (>= 10.0.0)
- OSharp.Authorization.Functions (>= 10.0.0)
- OSharp.AutoMapper (>= 10.0.0)
- OSharp.Core (>= 10.0.0)
- OSharp.Identity (>= 10.0.0)
- OSharp.Plugin.Admin (>= 10.0.3)
- OSharp.Plugin.Core (>= 10.0.3)
- OSharp.Plugin.Mall (>= 10.0.3)
- OSharp.Utils (>= 10.0.0)
- Senparc.Weixin.MP (>= 16.24.0)
- Senparc.Weixin.MP.Middleware (>= 1.5.0)
- Senparc.Weixin.MP.MVC (>= 7.17.0)
- Senparc.Weixin.TenPay (>= 1.18.0)
- Senparc.Weixin.TenPayV3 (>= 2.3.2)
- Senparc.Weixin.WxOpen (>= 3.25.0)
- Senparc.Weixin.WxOpen.Middleware (>= 1.5.0)
- System.Text.Encodings.Web (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.3 | 19 | 1/23/2026 |
| 10.0.2 | 27 | 1/23/2026 |
| 10.0.1 | 33 | 1/23/2026 |
| 10.0.0 | 79 | 1/21/2026 |
| 9.0.0 | 153 | 8/9/2025 |
| 8.2.1 | 443 | 12/9/2025 |
| 8.2.0 | 206 | 12/4/2025 |
| 8.1.9 | 404 | 11/20/2025 |
| 8.1.8 | 193 | 10/31/2025 |
| 8.1.7 | 210 | 10/27/2025 |
| 8.1.6 | 201 | 9/30/2025 |
| 8.1.5 | 188 | 9/24/2025 |
| 8.1.4 | 318 | 9/18/2025 |
| 8.1.3 | 312 | 9/18/2025 |
| 8.1.2 | 306 | 9/18/2025 |
| 8.1.1 | 186 | 9/3/2025 |
| 8.1.0 | 210 | 5/5/2025 |
| 8.0.8.6 | 174 | 12/18/2024 |
| 8.0.8.5 | 160 | 11/27/2024 |
| 8.0.8.3 | 159 | 11/15/2024 |
| 8.0.8.2 | 155 | 10/21/2024 |
| 8.0.8.1 | 165 | 10/9/2024 |
| 7.0.24.2 | 160 | 9/23/2024 |
| 7.0.24.1 | 178 | 9/13/2024 |
| 7.0.24 | 186 | 9/6/2024 |
| 7.0.23.3 | 145 | 9/4/2024 |
| 7.0.23.2 | 151 | 9/3/2024 |
| 7.0.23.1 | 161 | 8/27/2024 |
| 7.0.23 | 194 | 8/22/2024 |
| 7.0.22 | 190 | 8/22/2024 |
| 7.0.21 | 192 | 8/22/2024 |
| 7.0.20.4 | 155 | 8/1/2024 |
| 7.0.20.3 | 160 | 8/1/2024 |
| 7.0.20.2 | 166 | 8/1/2024 |
| 7.0.20.1 | 145 | 8/1/2024 |
| 7.0.20 | 146 | 7/25/2024 |
| 7.0.0 | 158 | 6/18/2024 |