The project type is not supported by this installation

后端 未结 15 645
故里飘歌
故里飘歌 2020-12-02 09:00

Whenever I try to open a project (csproj) that\'s downloaded from the internet, most of the times, I get the

\"The project type is not s

相关标签:
15条回答
  • 2020-12-02 09:21

    I had the same problem opening the NuGet solution with VS 2010 Ultimate, but the following command fixed it:

    devenv /ResetSkipPkgs
    
    0 讨论(0)
  • 2020-12-02 09:21

    As a addition to this, 'the project type is not supported by this installation' can occur if you're trying to open a project on a computer which does not contain the framework version that is targeted.

    In my case I was trying to open a class library which was created on a machine with VS2012 and had defaulted the targeted framework to 4.5. Since I knew this library wasn't using any 4.5 bits, I resolved the issue by editing the .csproj file from <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> to <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> (or whatever is appropriate for your project) and the library opened.

    0 讨论(0)
  • 2020-12-02 09:28

    You might need to install the "Microsoft Web Platform Installer" from http://www.microsoft.com/web/downloads/platform.aspx

    0 讨论(0)
  • 2020-12-02 09:28

    My problems because this line in project (.csproj) has newline (vs2010)

    <ProjectTypeGuids>
    </ProjectTypeGuids>
    

    When i update to

    <ProjectTypeGuids></ProjectTypeGuids>
    

    I can open again

    0 讨论(0)
  • 2020-12-02 09:33

    Problem for me was my ProjectTypeGuid was MVC4 but I didn't have that installed on the target server. The solution was to change the ProjectTypeGuids to that of a Class Library, and include the MVC DLLs with the project rather than the project pick them up from the GAC.

    0 讨论(0)
  • 2020-12-02 09:34

    For Visual Studio 2010 (prolly also for other versions):

    If you are opening an ASP.NET MVC project make sure that the correct MVC version is installed on your PC. If you try to open an ASP.NET MVC 3 project, first close all your visual studio instances and install MVC3: http://www.microsoft.com/en-us/download/details.aspx?id=1491

    For other ASP.NET MVC versions download them from www.asp.net/mvc or via Web Platform Installer 4.0.

    0 讨论(0)
提交回复
热议问题