'No Solution explorer now showing Visual Studio

Here, the folder contains two files through which I can access the code of the project in visual studio: Program.cs & ProgrammingAssignment3.csproj

enter image description here

When I open the Program.cs file there is no Solution Explorer, which helps in accessing different custom classes.

enter image description here

Even if I tried adding it from the View window:enter image description here It doesn't show anything inside it.enter image description here

I also tried Tools < Options < Projects and Solutions but there's no changes. enter image description here

But here when I open this .csproj file:enter image description here The solution explorer is shown and also the classes.enter image description here But unfortunately, as I need program.cs file for my work, I can't use the .csproj file. And this not just for this project but every other too. Please tell me how should I get appear the Solution explorer in the program.cs file so that I can write code easily by accessing the classes. I don't mean I've problem with the .csproj file, I want the solution explorer to get running in program.cs file.



Solution 1:[1]

The class (.cs) is in your project (.csproj), and the project is always in a solution (.sln). The solution isn't accessible when its part of your Unity project.

If you open the project file directly from the file explorer you can edit the class program.cs from there.

You could also open the script from Unity itself and it brings you there too.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MickyD