You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,99 +106,139 @@ later, even in the environment which installed no hotfixes.
106
106
## 3. How to used?
107
107
We will enter the theme, we have prepared a rich [VC-LTL Samples](https://github.com/Chuyu-Team/vc-ltl-samples) for your reference, and welcome to join our QQ group (633710173).
108
108
109
-
### 3.1. Using VC-LTL in Visual Studio
110
-
111
-
#### 3.1.1. Choose reference mode
112
-
113
-
##### 3.1.1.1. Reference via NuGet (recommend)
114
-
115
-
Right-click on the project and select "Manage NuGet Packages", then search for `VC-LTL` and choose the version that suits you, and finally click Install.
109
+
### 3.1. Using VC-LTL in Visual Studio C++ Project
110
+
1. Right-click on the project and select "Manage NuGet Packages". Search for `VC-LTL` and choose the version that suits you, and finally click Install.
If you download and unzip [VC-LTL Binary](https://github.com/Chuyu-Team/VC-LTL5/releases/latest) to `D:\Src\VC-LTL`, please double-click `D:\Src\VC-LTL\Install.cmd`.
121
-
122
-
> The script will save the information in the registry `HKCU\Code\VC-LTL`.
123
-
124
-
Copy `VC-LTL helper for Visual Studio.props` to your project, then open the Property Manager ( View - Property Manager ) and right-click on the Release Configuration, click on `Add Existing Property Sheet...`, and finally select `VC-LTL helper for Visual Studio.props`.
> For XP support, please Right click on the project, Properties - NuGet Packages Settings - VC-LTL - Target CRT version - "msvcrt 5.1.2600.0".
134
-
In addition, it is recommended that you install YY-Thunks.
135
-
136
-
### 3.2. Using VC-LTL in CMake
137
-
If you download and unzip [VC-LTL Binary](https://github.com/Chuyu-Team/VC-LTL5/releases/latest) to `D:\Src\VC-LTL`, please double-click `D:\Src\VC-LTL\Install.cmd`.
138
-
139
-
> The script will save the information in the registry `HKCU\Code\VC-LTL`.
140
-
141
-
#### 3.2.1. Add VC-LTL Module File
142
-
143
-
Copy `VC-LTL helper for cmake.cmake` to your project. Then add `include("VC-LTL helper for cmake.cmake")` to `CMakeLists.txt`.
144
-
145
-
**Example:**
146
-
```
147
-
cmake_minimum_required(VERSION 3.5.2)
148
-
project(ltltest)
149
-
150
-
include("VC-LTL helper for cmake.cmake")
151
-
152
-
add_subdirectory(src)
153
-
```
154
-
155
-
#### 3.2.2. Modify The Configuration
156
-
157
-
> It's recommended to use `/MT` to compile the project when using VC-LTL.
158
-
For XP support, please modify `VC-LTL helper for cmake.cmake` to enable `set(WindowsTargetPlatformMinVersion "5.1.2600.0")`.
159
-
In addition, it is recommended that you install YY-Thunks.
160
-
161
-
### 3.3. Using VC-LTL in NMake/CL
162
-
163
-
#### 3.3.1. Run VC-LTL Cmd Script
164
-
If you download and unzip [VC-LTL Binary](https://github.com/Chuyu-Team/VC-LTL5/releases/latest) to `D:\Src\VC-LTL`, please double-click `D:\Src\VC-LTL\Install.cmd`.
165
-
166
-
> The script will save the information in the registry `HKCU\Code\VC-LTL`.
167
-
168
-
Copy `VC-LTL helper for nmake.cmd` to your project. Run `vcvars32.bat` or `vcvars64.bat` and execute this script. The script will automatically modify the `include` and `lib` environment variables.
### 3.2. Using VC-LTL in Visual Studio .NET Native AOT Project
122
+
1.`TargetFramework` property to add `Windows` system platform, e.g. `net8.0-windows` or `net9.0-windows`.
123
+
2. Right-click on the project and select "Manage NuGet Packages". Search for `VC-LTL` and choose the version that suits you, and finally click Install.
124
+
3. For XP support, please add project `WindowsSupportedOSPlatformVersion` = `5.1`, for example:
### 3.4. I don't want to use NuGet, how do I configure the project manually?
184
+
#### 3.4.1. Using VC-LTL in Visual Studio C++ Project
185
+
1. Download VC-LTL. If you download and unzip [VC-LTL Binary](https://github.com/Chuyu-Team/VC-LTL5/releases/latest) to `D:\Src\VC-LTL`, please double-click `D:\Src\VC-LTL\Install.cmd`.
186
+
- The script will save the information in the registry `HKCU\Code\VC-LTL`.
187
+
2. Add VC-LTL Module File. Copy `VC-LTL helper for Visual Studio.props` to your project, then open the Property Manager ( View - Property Manager ) and right-click on the Release Configuration, click on `Add Existing Property Sheet...`, and finally select `VC-LTL helper for Visual Studio.props`.
188
+
3. Configure YY-Thunks according to the installation [YY-Thunks documentation](https://github.com/Chuyu-Team/YY-Thunks/blob/master/Readme.md).
1. Download VC-LTL. If you download and unzip [VC-LTL Binary](https://github.com/Chuyu-Team/VC-LTL5/releases/latest) to `D:\Src\VC-LTL`, please double-click `D:\Src\VC-LTL\Install.cmd`.
197
+
- The script will save the information in the registry `HKCU\Code\VC-LTL`.
198
+
2. Add VC-LTL Module File. Copy `VC-LTL helper for cmake.cmake` to your project. Then add `include("VC-LTL helper for cmake.cmake")` to `CMakeLists.txt`.
199
+
200
+
**Example:**
201
+
```
202
+
cmake_minimum_required(VERSION 3.5.2)
203
+
project(ltltest)
204
+
205
+
include("VC-LTL helper for cmake.cmake")
206
+
207
+
add_subdirectory(src)
208
+
```
209
+
3. Configure YY-Thunks according to the installation [YY-Thunks documentation](https://github.com/Chuyu-Team/YY-Thunks/blob/master/Readme.md).
210
+
4. Recommended to use `/MT` to compile the project when using VC-LTL.
211
+
- For XP support, please modify `VC-LTL helper for cmake.cmake` to enable `set(WindowsTargetPlatformMinVersion "5.1.2600.0")`.
212
+
5. Rebuild the project
213
+
214
+
#### 3.4.3. Using VC-LTL in NMake/CL
215
+
1. Download VC-LTL. If you download and unzip [VC-LTL Binary](https://github.com/Chuyu-Team/VC-LTL5/releases/latest) to `D:\Src\VC-LTL`, please double-click `D:\Src\VC-LTL\Install.cmd`.
216
+
- The script will save the information in the registry `HKCU\Code\VC-LTL`.
217
+
2. Configure YY-Thunks according to the installation [YY-Thunks documentation](https://github.com/Chuyu-Team/YY-Thunks/blob/master/Readme.md).
218
+
3. Copy `VC-LTL helper for nmake.cmd` to your project. Run `vcvars32.bat` or `vcvars64.bat` and execute this script. The script will automatically modify the `include` and `lib` environment variables.
0 commit comments