简体   繁体   中英

Visual studio doesn't support specific csproj file

I am getting this error when I try to open the solution file of my project. The solution is 2012 file (checked using notepad).

在此处输入图片说明

If I click on Ok, The solution opens up except for one csproject which does not load. I get a migration report in UpgradeLog.htm file, with the following error for the project which failed to load. Could not figure out much from it.

Error:

The application which this project type is based on was not found. Please try this link for further information: http://go.microsoft.com/fwlink/?prd=12395&pver=11&sbp=ProjectTypeDeprecated&plcid=0x409&clcid=0x409&ar=MSDN&sar=ProjectCompatibility&o1=82b43b9b-a64c-4715-b499-d71e9ca2bd60

Does the upgrade report mean that it is a project from previous version of Visual studio? It does not open in Visual Studio 2010 either.

The error doesn't say that Visual Studio doesn't support .csproj files at all, it says it doesn't support a specific project type in that particular project file. This means this either isn't your project as you claim, or you are trying to build it on a different machine from the one used to create the project.

Visual Studio uses various elements in a .csproj file to determine its project type. See How do you tell the Visual Studio project type from an existing Visual Studio project and What is the significance of ProjectTypeGuids tag in the visual studio project file . It does this so it knows how to compile your project, what properties tabs to show, what context menu options should be available and so on.

Certain project types can cause this error. Usually they require some kind of SDK to be installed on the machine used to open or build the project.

You should search the web for the GUID mentioned in the error message you show (the value after o1= ). You can also open the project file in a text editor and find the <ProjectTypeGuids> elements, which contains comma-separated project type GUIDs.

Then search the web for those GUIDs to find out which SDK or tool you need to install in order to be able to open or build the project.

If you paste the specific GUID from your error message in your favorite web search engine, you'll find Problem solved: Visual Studio / There is a missing project subtype. Subtype: '{82b43b9b-a64c-4715-b499-d71e9ca2bd60}' is unsupported by this installation. , where it is mentioned you'll need to install the Visual Studio 2013 SDK . This means that in this case, your project is a Visual Studio 2013 extension.

This is what documentation is for. You should at least put a ReadMe.txt file in your project directory, explaining what the prerequisites for building a project are, especially when it won't open or build with Visual Studio out of the box.

I had this issue when I used Update 5 for VS 2013.

For me I had to click ok and read the next few steps, that popped up. I was initially clicking cancel.

On mine the project was missing Web Tools, so had to reinstall those and once done it was working.

Hope that helps someone.

尝试将 ASP.Net 项目导入 Visual Studio 2015 Express for Desktop 时也会出现此问题,只需下载并安装 Express 2015 for Web 或使用 Visual Studio Community/Standard 即可解决。

I am currently using VS 2017 v 15.7.4. This error came out of no where without any updates on my part. Usually when I have errors like this I just delete the .vs folder in my solution and that clears the problem. In this case that is what I did and the problem was fixed.

  1. Close VS
  2. Delete .vs folder
  3. Load VS

Note: This was for a Xamarin based solution.

I solved this problem by downloading and installing (Microsoft Visual Studio Installer Projects). Close the project then install. After the installation, open your project then reload .csproj file

I had the same issue with VS 2017. Eventually i solved it by just enable the SSIS in the following way: 1. In VS 2017 - Click on Extensions and Updates in the Tools menu.

  1. Locate the Microsoft Integration Services Projects . if you can't find it then you will have to install it first.

  2. Click on the Enable button.

  3. Close VS and start it again and SSIS projects are now available.

enter image description here

This (the error that states "Visual studio doesn't support specific csproj file") also occurs when the .vs folder is removed; however, closing and reopening Visual Studio will resolve the error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM