SunnyUI/docs/install.md
2024-09-23 22:21:59 +08:00

70 lines
2.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 安装
---
- **1、Nuget安装**
Nuget安装是Visual Studio引用控件包最方便快捷的方法。
**推荐使用该方法通过Nuget引用安装后工具箱会自动添加SunnyUI控件。**
安装方法一通过PM命令安装
PM>`Install-Package SunnyUI`
安装方法二通过Nuget包管理器搜索SunnyUI安装
![输入图片说明](./assets/f6dce88d_416720.png)
- **2、下载安装**
3.6.8之前打开SunnyUI的码云地址[https://gitee.com/yhuse/SunnyUI](https://gitee.com/yhuse/SunnyUI)
3.6.8之后,下载路径为: [SunnyUI.Demo.exe](https://gitee.com/yhuse/SunnyUI.Demo)
点击“克隆/下载”点击“下载ZIP”根据提示下载SunnyUI。
![enter image description here](./assets/223010_76cd4ac9_416720.png)
下载yhuse-SunnyUI-master.zip然后解压直接引用已经编译好的dll文件
路径为SunnyUI\SunnyUI.Demo\Bin\SunnyUI.dllSunnyUI\SunnyUI.Demo\Bin\SunnyUI.Common.dll这两个项目都必须引用。再说一句还是推荐nuget引用。
新建Winform项目或者打开您已有的Winform项目选择窗体显示窗体设计器界面
点击“视图”-“工具箱”,显示工具箱,如下图:
![enter image description here](./assets/223028_c2e448fb_416720.png)
在工具箱,点击鼠标右键,添加选项卡
![enter image description here](./assets/223037_2d7d4804_416720.png)
输入SunnyUI
![enter image description here](./assets/223050_8c94ab32_416720.png)
在工具箱中选中选中SunnyUI选项卡。
- 安装方法一:
根据提示“此组中没有可用的控件。将某项拖至此文本可将其添加到工具箱”,
拖动SunnyUI\SunnyUI.Demo\Bin\SunnyUI.dll到提示文字会自动安装SunnyUI控件。
![enter image description here](./assets/223100_a6e9cf21_416720.png)
- 安装方法二:
点击鼠标右键,选择项
![enter image description here](./assets/223202_2f598874_416720.png)
在“.NET Framework 组件”页面点击“浏览”选择SunnyUI\SunnyUI.Demo\Bin\SunnyUI.dll
![enter image description here](./assets/223215_df2507fa_416720.png)
点击确定按钮将SunnyUI组件增加到选项卡
![enter image description here](./assets/223230_704d3f19_416720.png)
好的安装完成了开始使用SunnyUI控件吧~