I know there are already many threads on stackoverflow about this problem but they are all old and all the solutions work only for Visual Studio 2012/13. I'm using Visual Studio 2015 and I have the same problem.
I'm learning ASP.NET from a book and I've installed everything they have, and created the project exactly as they have but still can't see the 'Add Controller/Add View' options.
I've tried altering my ProjectGuids and that stuff but it is all incompatible since every solution I've found online is regarding older versions of Visual Studio.
Any ideas?
Related
When visual studio starts it shows a recents list (and has one on the file menu).
Our team has VS2022 and VS2019 installed in parallel because we're migrating some solutions to .net 6 and want to leave the legacy projects maintainable on their own branches until we can release the migrated solution.
Unfortunately they show the same recent list which means that 2019 solutions are in the 2022 list and 2022 solutions are appearing in the 2019 list.
How can I stop them sharing the recents list?
Had the same issue with VS2019 and VS2022.
Found a working solution that does not require any plugin.
In your VS2022 settings disable the "Synchronize Visual Studio..." setting seen in the screenshot below (Tools -> Options -> Accounts).
In VS2019 there is a similar setting but disabling this only in VS2022 was enough for me.
Not sure what other behavior disabling this setting causes. But so far I haven't noticed any problems.
Source:
https://developercommunity.visualstudio.com/t/Recent-projects-and-solutions-for-VS2019/10039684
I tried the suggestion from this Microsoft forum, but removing a project from recent list syncs the change on both VS versions. At first I thought it worked but after several seconds, up to a minute, the change is synced.
This post suggest to use a plugin for customizing the Start page of Visual Studio, but it is only for 2019 and not updated since 2019, I choose not to try it, but can be useful to someone.
There is also an option to create a custom Start page, but this seems overly complicated for me.
I did not found the issue logged in https://developercommunity.visualstudio.com/.
I had Studio 2019 Community Edition installed, as well ReSharper. Since we use ReSharper for code analysis, we deactivated Studio code analysis by .editorconfig with only 2 lines:
root = true
dotnet_analyzer_diagnostic.severity = none
Everything worked fine (and still does on another PC).
Now I got a new PC, installed Win 10 from scratch, as well Studio and ReSharper. Now Visual Studio always does code analysis and comments/suggests several issues. Even if I reconfigure issues severity to None, I do not get any changes to my .editorconfig, but still analysing the code.
How can I get rid of Studio code analysis?
This is not a direct answer to your question, but take a look at this article. It describes a way to disable Roslyn-based Visual Studio features through the project properties used by Visual Studio design-time builds. This approach significantly improves memory usage on large solutions.
I've been trying to install VS 2015 Enterprise edition on my computer but keep running into an issue. Hunting through SO for the last 24 hours, I've already tried the devenv.exe /ResetUserData & clearing the VS cache fixes, uninstalling enterprise edition and installing professional edition (which still failed for the same reason) and then reinstalling enterprise edition. I've tried deleting the .vs folder before opening the solution, ensuring that the MVC versions in the /Views/ web.config matches the version of the sites web.config (MVC 5.2.3.0).
As of this morning, I've noticed that it only crashes when I try to open a razor view that wasn't created through Visual Studio 2015 (I was using VS 2012 previously, and I'm trying to work on this project in 2015 now that I have a license). I can right-click in the solution explorer to create a brand new view and write anything I want in it with intellisense and save it, and open it back up without any issues.
I get the whole "An exception has occurred, this may be caused by an extension" message and then visual studio restarts if I try to open up a view that was already created through VS 2012.
I've tried looking inside of the log that it provides but I'm a newer developer so I can't really deduce anything from it..I'll attach it if anyone else can make anything of it.
MS VS Enterprise 2015 - Version 14.0.25029.00 Update 2 RC - .NET Framework Version 4.6.01055
I just cleared out the ActivityLog.XML and forced the error to get a fresh set of details - http://pastebin.com/j7RbGJFP
I found the answer in this blog post - https://blogs.msdn.microsoft.com/webdev/2016/01/12/visual-studio-keeps-showing-suggested-extensions/. It has to do with the extensions suggestion - it turns out if you have files not included in your project, you can't view them because of a bug introduced through the extensions suggestion. If you turn that off and include the views in the project, VS won't crash and you'll have intellisense.
I downloaded visual studio 2015 and created asp.net vnext empty project.I added bower.json and grunt.js
When I define dependency, intellisense works fine for items but when I define item version intellisene not works and always says not available.
Only available since July 20th, 2015 on a Visual Studio update
more on it in Scott Guthrie blog post
I will suggest simply don't use VS 2015 just yet. It is good for some random checking and Hello World apps but i tried to convert my N-tier Enterprise application into V-Next MVC 6 using VS2015. It simple is not working for me.
VS keeps on restarting and it hangs when it goes to resolve dependencies automatically.
I have been working with visual studio 2010 Premium RTM for over a month. When I installed it I had a fresh install of windows. (No betas or previous versions of VS)
I have been creating new ASP.NET MVC2 C# projects since I installed it. I went to create a new mvc project today and I don't have that as an option anymore. I went in under the new project section not the new website section. I don't see it listed under C# or VB.
Is there a way to get that back without reinstalling visual studio?
I had this problem with Linq to SQL templates. Try the accepted answer on this other stack overflow question.
The solution was to run
devenv.exe /InstallVSTemplates
to reinstall the templates. It worked for me when I had missing templates in Visual Studio 2010.