📝 update doc for vs build

This commit is contained in:
ValKmjolnir 2023-05-11 20:12:59 +08:00
parent 7f258dd17e
commit 63ec070d15
2 changed files with 19 additions and 5 deletions

2
.gitignore vendored
View File

@ -38,6 +38,7 @@
*.vcxproj.user *.vcxproj.user
.vs .vs
x64 x64
CMakePresents.json
# nasal executable # nasal executable
nasal nasal
@ -49,6 +50,7 @@ dump
# build dir # build dir
build build
out
# macOS special cache directory # macOS special cache directory
.DS_Store .DS_Store

View File

@ -2,12 +2,22 @@
## First | 首先 ## First | 首先
Make sure you are using VS 2022. We give a __CMakeLists.txt__ for you to create new VS project from it.
确保你使用的是 VS 2022。 我们为你提供了 __CMakeLists.txt__ 用于创建新的 VS 工程。
If you are using this way, you will __not need__ to continue reading.
如果你使用的是这种方式,下面的内容你就 __不需要__ 再读了。
Creating VS project from a CMake file is the __simplest__ way.
从 CMake 文件创建 VS 工程是 __最简单__ 的方式。
## How to Create VS project ## How to Create VS project
Make sure you are using VS 2022. You may not get the dynamic libraries by using this way to compile.
1. Get code from this repo using `git`. 1. Get code from this repo using `git`.
2. In Visual Studio, click `File`->`New`->`Project From Existing Code...`. 2. In Visual Studio, click `File`->`New`->`Project From Existing Code...`.
@ -20,6 +30,8 @@ Make sure you are using VS 2022.
## 如何创建VS工程 ## 如何创建VS工程
确保你使用的是 VS 2022。这个方式可能无法生成一些动态库。
1. 用 `git` 从这个仓库获取代码。 1. 用 `git` 从这个仓库获取代码。
2. 在VS的界面点击文件(F)->新建(N)->从现有代码创建项目(E)。 2. 在VS的界面点击文件(F)->新建(N)->从现有代码创建项目(E)。