更新 README.md

This commit is contained in:
LeonMMcoset
2026-03-15 20:36:35 +08:00
committed by GitHub
parent f8b5e8d3d0
commit 469b936c2a

View File

@@ -4,9 +4,9 @@
## 如何编译CMLeonOS ## 如何编译CMLeonOS
### 1.下载开发环境 ### 1.下载开发环境
#### Visual Studio #### Visual Studio
下载Visual Studio 2026正式版[https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=Community&channel=Stable&version=VS18&source=VSLandingPage&cid=2500&passive=false](https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=Community&channel=Stable&version=VS18&source=VSLandingPage&cid=2500&passive=false)在Visual Studio Installer里勾选.Net开发、C++桌面开发、VSIX包开发、.Net 6.0支持、MSBuild。 下载Visual Studio 2026正式版[链接](https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=Community&channel=Stable&version=VS18&source=VSLandingPage&cid=2500&passive=false)在Visual Studio Installer里勾选.Net开发、C++桌面开发、VSIX包开发、.Net 6.0支持、MSBuild。
#### VS C++ #### VS C++
下载Microsoft Visual C++ Redistributable 2010[https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2010-vc-100-sp1-no-longer-supported](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2010-vc-100-sp1-no-longer-supported)x86、x64均下载并安装 下载Microsoft Visual C++ Redistributable 2010[链接](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2010-vc-100-sp1-no-longer-supported)x86、x64均下载并安装
### 2.下载并安装编译环境 ### 2.下载并安装编译环境
使用 使用
```bash ```bash
@@ -24,4 +24,4 @@ git clone https://github.com/leonmmcoset/cmleonos
``` ```
下载CMLeonOS源代码使用Visual Studio打开cmleonos文件夹里的sln文件右键解决方案资源管理器里面的CMLeonOS项选择Nuget包配置将前文提到的配置出来的Cosmos镜像源里的**所有库**全部安装。 下载CMLeonOS源代码使用Visual Studio打开cmleonos文件夹里的sln文件右键解决方案资源管理器里面的CMLeonOS项选择Nuget包配置将前文提到的配置出来的Cosmos镜像源里的**所有库**全部安装。
然后将运行配置的Release复制一个新的名字为Fixed_Release架构选项从Any CPU改为x64。 然后将运行配置的Release复制一个新的名字为Fixed_Release架构选项从Any CPU改为x64。
配置完成后点击顶栏的运行按钮等待编译完成如果电脑里有VMWare将会自动启动VMWare Player运行编译出来的iso文件位于/bin/x64/Fixed_Release/.net6.0/CMLeonOS.iso。 配置完成后点击顶栏的运行按钮等待编译完成如果电脑里有VMWare将会自动启动VMWare Player运行编译出来的iso文件位于`/bin/x64/Fixed_Release/.net6.0/CMLeonOS.iso`