Unity2021 opens C# file without automatically creating sln

Q: Opening a C# file in the project displays "Miscellaneous Files"

Editor>Preferences>External Tools>External Script Editor shows that VS2017 (internal) is bound, and
opening the C# file shows "miscellaneous files", and no project solution (*.sln) is automatically created
insert image description here

A: Check the VS Editor version of Package Manager

Window>Package Manager to find out whether the version of Visual Studio Editor needs to be updated, and find that only Visual Studio Code Editor
Visual Studio Code Editor version
Select Visual Studio Code Editor version Remove; add Visual Studio Editor version 2.0.11
Visual Studio Editor 2.0.11
Check the binding status of External Script Editor, Has changed to VS2017 with version number. Open the C# file at this point, and the solution will be automatically created
insert image description here

Guess you like

Origin blog.csdn.net/qq_36829186/article/details/120777894