There are several things that may be so, so I cannot give you one specific answer. However, here are a few things to try on your machine, which throws an error:
First check which version of Visual Studio is set as the default for opening csproj files. You might have installed SQL or something else using an older version of Visual Studio. Sometimes this can lead to an error. Even if the Visual Studio version selector is selected by default, I saw how it throws an error. Open the correct version of Visual Studio (through the Programs menu), and then try opening the package inside Visual Studio. If this works, you know that the problem is which version is opening the file.
If this does not work, you can try resetting Visual Studio. From the devenv /setup start menu menu This should be a reset to Visual Studio, and hopefully it fixes the problem. If this does not work, try running devenv /ResetSkipPkgs in the Run menu. This will try to download any packages that Visual Studio previously skipped.
If these steps do not work, let us know. Provide us with additional error messages that appear after completing these steps.
source share