Hi @Marc Beacken , thanks for your question.
In Visual Studio, the .csproj file itself normally isn’t listed directly in Solution Explorer, but you should see the project node with its forms and code files underneath. If you don’t, please try these steps:
- Check if the project is loaded
- In Solution Explorer, see if the project shows as “(unavailable)”.)
- If so, right-click → Reload Project.
- Show hidden files/project nodes
- In Solution Explorer, click Show All Files (You can see it here Learn about Solution Explorer - Visual Studio (Windows) | Microsoft Learn
- Verify the solution includes the project
- Right-click the solution → Add > Existing Project… → select your
.csproj.
- Right-click the solution → Add > Existing Project… → select your
- Edit the project file manually
- Right-click the project node → Edit Project File (available in recent VS versions) to confirm the references are correct.
- If you’re using WinForms/WPF
- Make sure you actually opened a Windows Forms/WPF project type, since forms (
.cs,.Designer.cs,.resx) should appear grouped together.
- Make sure you actually opened a Windows Forms/WPF project type, since forms (
- If the solution file is corrupted
- In Visual Studio, go to File > New > Project → choose Blank Solution.
- Then right-click the new solution → Add > Existing Project… and point to your
.csproj. - This rebuilds a clean solution file while keeping your original project intact.
Hope this helps. Please reach out if you need any clarification.