Pit encountered in UNITY+VSCODE without VS environment installation test

Write the conclusion first : Even if you are uncomfortable with VS, you should still install the VS that comes with UNITY, otherwise it is annoying to use all kinds of bad things that other compilers need to read the output files one by one. . .

Taking advantage of the time to install unity2021 now, I just spent two hours writing about the pitfalls and solutions I encountered when using VSCODE for the first time without VS on bare metal.

First, download and install the latest version of VSCODE from the official website, connect VSCODE with UNITY and create a script, double-click to open VSCODE, and automatically install and activate various related plug-ins such as: c#, c# extension, gitlens, encourager, debugger for unity, monobehaviour snippets, unity tools ...

Just about to start writing code, the annoying pop-up prompt starts in the lower right corner :

无法正常使用debugger吧啦吧啦,缺少.net sdk,给了个官网链接...

Click to download the latest version, it seems to be .net sdk 5.0, install and restart the computer... OK-.-

gitlens无法正常使用找不到git...

Baidu, official website, download, install, restart, and it’s all over again. -GIT
official website

some projects have trouble loading...

Looking at the output record, looking for Fail shows that .net framework 471 is missing...
.net framework 471
is doubled again =. =#

打了断点测试又报错,明明装了debugger for unity插件...

Follow the plug-in prompt to delete the .vscode folder and generate the corresponding launch.json file

Break the point and press the unity editor to debug...Finally, it's doubled again-. -|||

There are no new pits so far, so write it down in a small book =. =

Guess you like

Origin blog.csdn.net/tladsl69zyw/article/details/119320452