explaingit

jeffreysu/weixinmpsdk

8,859C#Audience · developerComplexity · 3/5Setup · moderate

TLDR

A .NET library for building WeChat integrations in C#. It wraps WeChat's APIs for Official Accounts, Mini Programs, WeChat Pay, and Enterprise WeChat so developers don't have to construct raw HTTP calls by hand.

Mindmap

mindmap
  root((WeiXinMPSDK))
    Products Covered
      Official Accounts
      Mini Programs
      WeChat Pay
      Enterprise WeChat
    Compatibility
      .NET Framework 3.5+
      .NET Core
      .NET 10
    Project Types
      MVC and Web API
      Blazor and MAUI
      Console apps
    Audience
      Chinese .NET developers
      Enterprise integration teams
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Build a WeChat Official Account backend in C# that receives messages and sends automated replies.

USE CASE 2

Integrate WeChat Pay into a .NET e-commerce application using the SDK's payment modules.

USE CASE 3

Create a WeChat Mini Program server-side API using the SDK's NuGet packages in ASP.NET Core.

Tech stack

.NETC#NuGet.NET Framework.NET CoreASP.NET

Getting it running

Difficulty · moderate Time to first run · 30min

Documentation and code samples are primarily in Chinese, a registered WeChat developer account is required to use any of the APIs.

In plain English

WeiXinMPSDK is a .NET software library for building applications on WeChat, the dominant messaging and social platform in China with over a billion users. WeChat exposes a large number of APIs covering its various product surfaces, and this library wraps those APIs in a consistent C# interface so developers do not have to construct raw HTTP calls by hand. The library covers the full range of WeChat's developer offerings: Official Accounts (the public subscription accounts that brands and publishers use to reach followers), Mini Programs (lightweight apps that run inside WeChat without a separate install), Mini Games, WeChat Pay, Enterprise WeChat for business communication, and the open platform for third-party app integrations. It also includes support for the WeChat JavaScript SDK used in browser-based features inside the app. A notable feature of the SDK is its broad compatibility across .NET versions. The README lists support from the old .NET Framework 3.5 and 4.x versions all the way through .NET Core and up to .NET 10.0, which means teams using both legacy Windows-server deployments and modern cross-platform setups can use the same library. It also works across multiple .NET project types: MVC, Razor Pages, Web API, console apps, desktop applications, Blazor, and MAUI. The project has been actively maintained since 2013, making it one of the longest-running open-source .NET projects in China. The README is written primarily in Chinese. Documentation and live code samples are hosted on the project's own website. For teams who want everything at once, a combined NuGet package called Senparc.Weixin.All pulls in all modules together. The README also notes ongoing work to integrate AI chat capabilities into WeChat bots using the project's companion AI library. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
I'm using WeiXinMPSDK to handle WeChat Official Account messages in ASP.NET Core. Show me how to verify the WeChat server token and set up the message handler endpoint.
Prompt 2
How do I install Senparc.Weixin.All via NuGet and register it in my ASP.NET Core Startup.cs to handle WeChat Pay payment callbacks?
Prompt 3
Using WeiXinMPSDK, show me how to send a template message to a WeChat subscriber when an order is confirmed in my C# backend.
Prompt 4
I need to handle WeChat JS-SDK authentication in a web page embedded in WeChat. Show me how to generate the JS-SDK signature using WeiXinMPSDK.
Open on GitHub → Explain another repo

← jeffreysu on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.