VS2019 unable to add controller - visual-studio

Please help, I am unable to add new controller in VS2019 (latest version 16.7.2)
I got:
Method not found: 'EnvDTE.Project Microsoft.WebTools.Scaffolding.Core.FactoryConfig.IsaffolderFactoryConfigEvaluationContext.get_ActiveProject()
I already upgraded it to the latest 16.7.2 and removed .vs folder, clean solution and project .. but no luck..
Regards

I had the same problem, second in 3 months due to a vs update
My problem was with Syncfusion extensions
Disable your Syncfusion extensions
Close Visual Studio 2019
Re-open Visual Studio 2019
You may have to add a blank controller
you can then add a new controller or scaffolded item from the context menu.
Hope that this helps

I repaired VS 2019 installation and it works properly now..
still don't know why this can be happened

Related

IntelliSense cannot find ViewComponent Invoke() method in Razor Pages project

I get this IntelliSense error message in Visual Studio error console every time I open any .cshtml file in the project:
Could not find an 'Invoke' or 'InvokeAsync' method for the view component 'xxxxxxx'
All my view components have Invoke() or InvokeAsync() methods in them. When I run the project, everything works fine and all view components are rendered properly, so I think my code is not a problem here.
Anyone encountered this problem in VS IntelliSense before? I'm running Microsoft Visual Studio Community 2019 Version 16.8.6 and project is running on asp.net 5.0.
I think the Intellisense for your project is broken due to some personal steps. To solve it, you have to close your project, delete .vs hidden folder under the solution folder, bin and obj folder.
After that, restart your project and I hope that your issue will disappear.
This was resolved after installing Visual Studio 2022.

Visual Studio 2019 hangs on "Execute Suggested Action" when adding a reference

I've got a problem with Visual Studio Enterprise 2019, it hangs on "Execute Suggested Action" when I use it to add a reference to another project or library.
It's a Visual Studio bug. They are working on it.
Take a look here: https://developercommunity2.visualstudio.com/t/Infinite-suggested-action-never-ends/1223055
The fix will be probably released on the next release (16.9).
UPDATE:
Still in vs 16.8.4 but should be solved in 16.9.
UPDATE 2:
In 16.9 PREVIEW 3, this issue seems to be resolved.
UPDATE 3:
Fix has been released! You can download the new version of VS now.
if anyone struggle with adding references: go to your project -> right click on Dependencies -> select eg Add Project Reference -> look for proper reference
I was having the same issue when adding on the suggestion of Intellisense. For me, it turned out to be an issue of cyclic reference. My bad. I corrected it and now it doesn't hang.
It was VS 2019 community, Windows Forms (C#)

xamarin project type incompatible

This error started showing from yesterday, I remember installing Web development packages and updates windows. Before that if was working fine.
If I reload project same error shows up.
The application which this project type is based on was not found.
Please try this link for further information:
http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=EFBA0AD7-5A72-4C68-AF49-83D382785DCF
This link redirects https://www.xamarin.com/visual-studio page , which is nothing but xamarin download page.
I tried uninstalling Xamarin packages and reinstalling.
It did not solve the issue.
Now I am doing complete uninstall of MS Visual Studio 2017
Please note that no changes have been made to csproj or solution file.
I get the "xamarin project type incompatible" frequently. (VS2015)
The solution for me:
Close down VS.
In the src project folder delete the .vs folder.
Restart VS.
Complete uninstall of Visual Studio along with C++ distributables from Control Panel > Programs and Features and then re-installing Visual Studio fixed the issue. Seems its caused by errors in installation
Microsoft should code properly and let programmers know if there were errors and 'repair' option is supposed to fix them. I don't know why these things are missed out in roll-outs.

Visual Studio 2017 crash

We are running into a problem opening our MVC5 solution in Visual Studio 2017. It will show a message saying loading projects, followed by "Preparing solution" and then it just freezes. Some preliminary research has lead to suggestions like
Remove the hidden .vs folder
Repair installation by running as admin
Updating to the latest released VS build
Remove any node.js type folders that have deeply nested folder structure within the solution folder
However, none of these have worked. Has anyone else run into a similar problem using VS 2017 with their solution? There are no special commands on packages loaded on startup.
I was able to finally get it to work. I updated to the latest Visual Studio build 15.0.0+26228.10, but that did not seem to help. After removing my .vs folder before opening the solution multiple times, it finally started to load. I have no 3rd party extensions or tools running.
I installed visual studio enterprise 2017 version 15.0.0+26228.10. and productivity power tool extension. the studio keep crashing when load project. I uninstall everything and reinstall vs only, the crash problem disappeared.
Deleted the vs folder, but it didn't work.
Looked for recently changed files in the project, saw Web.csproj.user — when I removed this the project works again.
Visual studio 2017 keeps crashing when i try to launch it,all i did was to launch visual studio installer go to more which is under the product am using then clicked on repair and that got me running again.
We saw some lockups, especially during the start of Batch Builds, until we set this experimental feature to False:
Tools > Options : Text Editor > C/C++ > Experimental : Enable Faster Project Load.
I don't know whether it could apply to your problem or not, but it is related to loading projects, so...
Good luck.
I had the same issue and uninstalled the ankhsvn subversion plugin then closed and re opened vs 2017 ad it worked.

VS 2015 & vNext/MVC 6 IntelliSense issues - Resharper

I am having an issue with Visual Studio 2015 RC and IntelliSense when running the MVC6 vNext project template. The project builds and runs just fine and nuget restores packages if I manually remove them. The issue is that VS 'shows' that it cannot resolve my using statements throughout the project, thus breaking intellisense. Has anyone had this issue where it builds and runs fine but does not show the using statements as resolved?
OK, figured it out. Suspending resharper removed the red text, but still no intellisense. Tried to update resharper via the resharper menu in VS, this failed. Manually installed version 9.1.1 of resharper over version 9.0.0, this made everything happy again (full install removed previous version of resharper).
You need to use ReSharper 2016.2 or above to support .net core.
You can use the early access version available from https://confluence.jetbrains.com/display/ReSharper/ReSharper+2016.2+EAP
This is an issue of Resharper 9. Don't use Resharper 9 with MVC 6. It will suggest you the wrong path when you import CSS or JavaScript file to your page, as I said in this question.
So, the solution is: update to Resharper 10. However, there are many problem remains when using Resharper with MVC 6.

Resources