Unable to open sln in VS2022

mohamed chitou 1 Reputation point
2022-06-03T04:50:00.38+00:00

A little background.

  • I am using an Intel Macbook Pro.
  • I have windows 11 installed using Parallels.
  • I am using Visual Studio Community 17.2.3.
  • The solution file is created on the Mac Downloads folder.

Let's say I create a Console project using C#: HelloWorld.
When I try to reopen that simple Hello World project, I get the following:

  • Pop-up Error message: One or more projects in the solution were not loaded correctly. Please see the Output Window for details.
  • Output Window: \\Mac\Home\Mac\Home\Downloads\HelloWorldSLN\ConsoleUI\ConsoleUI.csproj : error : The project file could not be loaded. Could not find a part of the path '\\Mac\Home\Mac\Home\Downloads\HelloWorldSLN\ConsoleUI\ConsoleUI.csproj'. \\Mac\Home\Mac\Home\Downloads\HelloWorldSLN\ConsoleUI\ConsoleUI.csproj

The correct file path obviously is: \\Mac\Home\Downloads\HelloWorldSLN\ConsoleUI\ConsoleUI.csproj
I am not sure where the extra Mac\Home\ at the beginning is coming from. But it not allowing me to open my solution file.

Another thing I would like to mention. The .sln file created has the full path in the project section as you can see below.

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.2.32526.322
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ConsoleUI", "\Mac\Home\Downloads\HelloWorldSLN\ConsoleUI\ConsoleUI.csproj", "{8CDD8387-B905-44A8-B5D5-07BB50E05BEA}"
EndProject

Usually, we have ConsoleUI\ConsoleUI.csproj instead of the full path. I checked all my previous projects, and I do not see a full path in the .sln file project section.
I need help to figure out how to resolve this issue so I can reopen projects without manually editing the .sln file.
Thank you, and please let me know if you need clarification.

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

1 answer

Sort by: Most helpful
  1. mohamed chitou 1 Reputation point
    2022-06-06T15:54:23.327+00:00

    Microsoft is fixing the issue.
    10051894


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.