# NanUI **Repository Path**: zevinw/NanUI ## Basic Information - **Project Name**: NanUI - **Description**: NanUI 是 .NET 平台上的一个开源框架,用于使用 HTML5、CSS3 和 JavaScript 创建 WinForm 应用程序的用户界面。 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/dotnetchina/NanUI/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 481 - **Created**: 2025-08-12 - **Last Updated**: 2025-08-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
Easily build powerful WinForm applications with HTML, CSS and JavaScript.
# NanUI 点击[[此处]](https://gitee.com/linxuanchen/NanUI/)切换到**简体中文**仓库首页。  [](https://github.com/XuanchenLin/NanUI/actions/workflows/main.yml)   ## ⭐ About NanUI is an open source framework on .NET platform for creating user interface for WinForm Applications using HTML5, CSS3, and JavaScript. It is based on the [Xilium.CefGlue](https://bitbucket.org/xilium/xilium.cefglue/wiki/Home) project, which is a .NET wrapper around the [Chromium Embedded Framework](https://bitbucket.org/chromiumembedded/cef). If you are looking for a framework for creating a WinForm application with a modern user interface, NanUI is a good choice. you can use HTML, CSS, and JavaScript to create a user interface, and use C# to write the business logic of the application. **Please give NanUI project a star⭐ if you like it.** If this project helps, please consider funding it. [](https://paypal.me/mrjson?country.x=C2&locale.x=zh_XC) ## ✨ Recommended for developers interested in WebView2 If you think that NanUI based on CEF is too heavy, you can try the **WinFormedge** project now. It is a lightweight WinForm framework based on [WebView2](https://learn.microsoft.com/en-us/microsoft-edge/webview2/) as the core. Suitable for developers who do not want to integrate libcef, using WinFormege and cooperating with the WebView2 that comes with the Windows system will effectively reduce the size of the application release package. After testing, the size of the .NET 8.0 x64 + WinFormedge application packaged with ZIP compression is only 36MB, while the application packaged with NanUI is at least 125M after compression. But it should be noted that applications created with WinFormedge can only run on Windows 10 and Windows 11, while NanUI supports Windows 7 SP1 and above. - GitHub - [WinFormedge](https://github.com/XuanchenLin/WinFormedge) - Gitee - [WinFormedge](https://gitee.com/linxuanchen/WinFormedge) ## 🖥️ Requirements **For Development** - .NET Framework 4.6.2 or higher / .NET 6.0 or higher - Visual Studio 2019 or higher (VS2022 is recommended) **For Deployment** - Microsoft Windows 7 Service Pack 1 or higher - .Net Framework 4.6.2 or higher - .NET 6.0 for Windows 7 and higher. - .NET 7.0/8.0 for Windows 10 and higher. This is a **Windows Only** framework, it can not run on Linux or Mac OS. The minimum supported Windows is Windows 7 Service Pack 1, and some features (such as DirectComposition Offscreen Rendering) are not supported on Windows 7. ## 🧰 Getting Started Create a simple NanUI Application by following the steps below: **1. Create a WinForm Application by default template.** **2. Install NanUI NuGet Package** Open the NuGet Package Manager to install or use NuGet Package Manager Console, and run the following command to install NanUI nuget package: ```powershell PM> Install-Package NetDimension.NanUI ``` Install the dependencies of Chromium Embedded Framework that NanUI depends on: ```powershell PM> Install-Package NetDimension.NanUI.Runtime ``` **3. A basic NanUI application requires the following code:** Modify the code in the **Program.cs** file as follows: ```csharp using WinFormium; class Program { [STAThread] static void Main(string[] args) { var builder = NanUIApp.CreateBuilder(); builder.UseNanUIApp