I'm trying to launch a project created by someone else in my local environment. I'm currently using the following products:
But when I double click on the .sln file I get the following error:
C:\Users...\Desktop\ContactManager\ContactManager\ContactManager.csproj : error : The project file 'C:\Users...\Desktop\ContactManager\ContactManager\ContactManager.csproj' cannot be opened.
The project type is not supported by this installation.
Please help me load my project. :)
Thank you,
Aaron
First you have to navigate to the project's node in Solution Explorer. Then you have to right-click > Unload the project. Then you have to right-click > Edit the csproj file. Then you have to find the offending line in the csproj file and modify or delete it.
If your program code is already in a Visual Studio project, open the project. To do so, you can double-click or tap on the . csproj file in Windows File Explorer, or choose Open a project in Visual Studio, browse to find the . csproj file, and select the file.
Every Visual Studio project includes an MSBuild project file, with a file extension that reflects the type of project—for example, a C# project (. csproj), a Visual Basic.NET project (. vbproj), or a database project (. dbproj).
You should be able to do this by right clicking the project in the Solution window and selecting Tools - Edit File. That will open the project file (. csproj) in the text editor.
Turns out that I just needed to install MVC version 3. I guess the project that I was trying to open is using MVC3 and my machine only had 2 as you can see in my environment list above. I'm glad I was able to fix this BUT give me a better error message for crying out loud. Sheesh. ;)
Aaron
I've come across this before. In my case, I had installed Microsoft SQL Server and, more importantly, BIDS. Whenever I would open a project that was created in VS2008, the VS version selector would identify this as a 2008 project and BIDS would try to open it (and this error would occur). What I did as a work-around is I would right-click on the .sln file and use the "Open With" to select VS2010. If that also works for you, you can change your defaults for what opens .sln files.
Another way to test this is to open VS2010 and then use the "Open Solution" menu option to open your solution. If this method works, you know the issue is the default program that is opening your .sln files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With