I have been having issues with Visual Studio 2013 lately and one of them being how MVC 5 is handled in the IDE. I'm fine with them moving the adding of areas and controllers to a new submenu, but after Update 2, that context-menu item disappeared. Anyone else experiencing this? I can't find "Add Scaffolded Item..." after Visual Studio 2013 Update 2.
Another YMMV answer, but I was able to get this working by modifying the Registry. In particular:
\\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\ExtensionManager has several branches, but the two of interest are:
EnabledExtensions and PendingDeletions
I moved the string key:
Microsoft.AspNet.Scaffolding.Mvc.5.0,5.0
whose value is
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 12.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\WEB\MVC\SCAFFOLDING\
From PendingDeletions to EnabledExtensions.
Related
http://i.stack.imgur.com/k5fN5.jpg
I can't create a new ASP.NET Web Project via template. Clicking on "OK" crashes VS 2013 or shows the error message "Object reference not set to an instance of an object".
I'm using MS Windows 8.1 + Visual Studio 2013 Premium Update 3.
Extensions I am using:
.NET Reflector Pro
Brace Completer
Visual Power Tools
Web Essentials 2013 for Update 3
Maybe someone knows whats going on? I am running VS 2013 as admin. :(
I tried disabling all Extension, doesn't help.
It's a fresh install from MSDN.
Edit:
I just recognized that the templates show up, when I choose a .NET framework below 4.5:
http://i.imgur.com/rK6AzNR.jpg
EDIT 2:
Okay, reinstalling didn't help. I also uninstalled everything .NET related.
Okay I found the Problem.
in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies are three assemblies that prevent VS 2013 from showing up the assemblies. See this Question/Answer:
Can't create new MVC5 project or any other ASP .NET projects in Visual Studio 2013
All of my coworkers can see in Visual Studio 2012 Solution Explorer when anybody else has code checked out.
The icon changes from Checked In to Checked Out By Another Person in Another Place.
But my Visual Studio does not update to change the icon when this takes place. I went to another coworkers desk and had them check out a file and then I went back to mine and the icon did not update. I checked out one of my files and it was correctly displayed on their screen.
Is this a bug in Visual Studio 2012?
Is there an option I can click in TFS, Visual Studio, or elsewhere where I can turn this option on?
It is quite annoying working with multiple developers and I do not know when somebody else has a file checked out.
I am currently running Visual Studio Professional 2012 - Version 11.0.61030.00 Update 4
I have a project web mvc3 be created on Visual Studio 2012, now i open this project on Visual Studio 2013 IDE, build is ok but I cannot quick add new controller!
this is my screen!
http://s07.img-up.net/check6d26.png
helps me,
Thanks,
Make sure the project is not currently running in debug mode. If it is, press the red button and stop it. Now you can add, just right click on the Controller folder and select Add - Controller.
I have fixed this error:
We need Upgrading an ASP.NET MVC 3 Project to ASP.NET MVC 4
http://go.microsoft.com/fwlink/?LinkID=317645
!!! READ THIS IF YOU HAVE VISUAL STUDIO 2010 & 2013 VERSIONS INSTALLED !!!!
I ran in to this issue when I opened the project with Visual Studio 2013, I tried going the "Update to MVC4 route" mentioned above, that did not work out as expected. Right there it hit me! "why not open the project with VS 2010, add the controller, then save and resume using 2013?" - I did just that and it worked!. simple right?
I am missing the silverlight 4 templates for Visual Studio 2010. devenv /installvstemplate doesn't work because the actual files are missing, and the specific one I want (User Control) doesn't show up in the list of online templates. I've already tried the solutions in Missing Project/Item Templates.
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ does not contain any project templates or item templates.
I've already tried uninstalling and reinstalling all Silverlight components and tools I'm using.
Is there any way to just download the templates directly and put them in that folder?
I went to the windows control panel, Programs and Features, and did a re-install of Visual Studio (VS lets you do that without having to uninstall and lose all your settings). After that, I re-instaled all the silverlight components I'm using. The templates are available now.
This helped me: http://chiragrdarji.wordpress.com/2008/05/06/missing-templates-in-visual-studio-installed-templates/
If you Close all instance of Visual Studio. Open visual studio command prompt and type,
devenv /installvstemplates
Press Enter
Ever since I updated my projects for VS 11 I can't get my #Model intellisense to work in either version of Visual Studio (2010 or 11). I've tried reverting the .csproj file to remove the VS 11 references, but to no avail. Other MVC 3 Razor project are working just fine. Anyone experience this?
Not working in both versions of Visual Studio smells like the install is possibly corrupted a bit. My first step would be to try and repair the Visual Studio 2010 install and see if the Intellisense behavior comes back for 2010 only.
Control Panel
Add / Remove Programs
Visual Studio 2010
Select Repair in the menu
If this works then you could be happy with the returned intellisense or try the same steps for Visual Studio 11 and hope it fixes it for both. But if the installation of 2011 is to blame then very likely it would just immediately rebreak both of them
I found this article that addressed my issue.
EDIT:
It seems that some combination of installing VS 11 and some tool updates caused this issue. I got luck and managed to get the following error message:
The type System.Web.Mvc.ModelClientValidationRule exists in both c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.O\Assemblies\System.Web.WebPages.dll and c:\Program
Files (6)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll
After doing some digging I wound up uninstalling "Microsoft ASP.NET Web Pages 2 - Visual Studio 2010 Tools", which resulted in everything working. Granted it may have been a better idea to uninstall "Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools" instead, but this is working at the moment.
I found a complete lack of information on the Internet about this type of issue, so I'm putting it here for posterity.