Reputation: 20014
After installing Visual Studio 2019 (previously I had 2017), some Web projects appear as
"Incompatible"
The application which this project type is based on was not found.
It still works on 2017 but I haven been able to figure out why I am getting this error.
Project type:
Web Site {E24C65DC-7377-472B-9ABA-BC803B73C61A}
If I launch the VS Installer and install or uninstall any component and then open VS 2019 and my solution it loads fine WebSite and I can run it. If I close it and reopen it a 2nd time it becomes incompatible again.
Does anyone had the same issue?
Upvotes: 16
Views: 30307
Reputation: 20014
I found the answer to this issue.. It has to do with the .user files.
In order to resolve the problem:
Upvotes: 16
Reputation: 764
I just thought to share my solution. Had a similar issue, for one of the solutions projects will just not load. The same error as in the question.
Deleting *.user files did not help, but deleting .vs directory located in the solution directory, and reopening the solution afterwards resolved it for me.
Note thought that .vs is a hidden directory, so you might need to enable viewing them in the Windows Explorer.
Upvotes: 1
Reputation: 11
In my case I went to "Manage extensions", selected "Installed" and I found out that Microsoft Reporting Service Projects" had been "disabled" (I don't know why/how).
I just pushed the "enable" button, closed and restarted VS2019 and everything went back to normal.
Upvotes: 1
Reputation: 167
In my case it was because a ModelingProject diagrams was involved, trying to import an earlier VS2017 project in a VS2019 environment and it displayed to me all the errors for missing project application, after reading about live dependancy validation, and that UML designers removed and installing map dependencies with code maps, I updated the ModelingProject and it correclty displayed all solution elements, built and started properly.
Upvotes: 1
Reputation: 29
In my case the problem was a wrong version number in project config (.dtproj). I find this out, while comparing an old file with a new project file from VS2019
Old one:
<ProductVersion>15.0.2000.132</ProductVersion>
New one:
<ProductVersion>15.0.2000.128</ProductVersion>
The solution:
Changed the version Number in old config file from 132 to 128 and it works.
Upvotes: 3
Reputation: 54801
I tried repairing Visual Studio 2019 Community but it didn't work.
A workaround is to remove the <ProjectTypeGuids>
element from the .csproj. It won't look like a "Unit Test project" in Solution Explorer any more, but at least now I can open it. And the tests are still discoverable.
As described in this answer.
Upvotes: 4
Reputation: 83
TL;DR
Make sure the "Developer Analytics Tools" extension is enabled.
Longer story
Don't be this know-it-all who thinks that doesn't need "Developer Analytics Tools" enabled if you want to use a "Unit Test" project at the same time. Just as I was. Keep it enabled.
Also, consider voting to reconsider a related problem at the Developer Community: https://developercommunity.visualstudio.com/content/problem/904418/unit-test-projects-needs-migration-message.html
Kudos to Alexey Lotysh for providing this solution.
Upvotes: 1
Reputation: 7647
For me the problem occurred when updating VS2019 from 16.4.5 to 16.4.6.
Solution: Use the VS installer to repair the installation, as describe in this thread.
Upvotes: 1