I just updated my project to MVC 5.1 from MVC 5. The main web.config file got updated automatically, but web.configs under main View and Areas folders weren't changed. I suspect that's why now I lost both intellisense and resharper support for my actions, controllers and areas.
Does anyone know correct web.config content for MVC 5.1 Views? Just replacing 3.0.0.0 to 3.1.0.0 and 5.0.0.0 -> 5.1.0.0 did not solve the issue.
It happens in both Visual Studio 2012 and 2013 Professional.
Found a solution from this MS article:
MVC 5.1 Tooling Support and Razor IntelliSense are Still Broken Even
After Installing VS2013 Update 1 RC
Known issue:
If a VS2013 user installed “Microsoft ASP.NET and Web Tools 2013.1 for
Visual Studio 2013” before they install VS2013 Update 1 RC, they won’t
be able to get MVC 5.1 tooling support that comes with VS2013 Update 1
RC.
Symptom:
MVC 5.1 tooling support and Razor IntelliSense are still broken even
after installing VS2013 Update 1 RC.
Workaround:
From "Add/Remove Program", uninstall "Microsoft ASP.NET and Web
Tools 2013.1 for Visual Studio 2013"
Repair VS2013 RTM
Install VS2013 update 1 RC if you have not yet installed it. If you have
already installed this, you don’t need to reinstall or repair it.
From Web PI, reinstall Microsoft ASP.NET and Web Tools 2013.1 for
Visual Studio 2013 or repair Azure SDK 2.2.
Update NuGet Packages
Steps:
Select TOOLS –> NuGet Package Manager –> Package Manager Console. This opens the Package Manager Console pane.
In command prompt, type Update-Package and press Enter.
This command will update the MVC files and activate the intellisense again.
Well if you update to ASP.NET MVC 5.1 RTM without updating Visual Studio 2013, you will not get Visual Studio editor support for syntax highlighting while editing the Razor views. You will need to update Visual Studio 2013 to get this support.
So it is not directly connected with IntelliSense or Resharper. But anyway I would try to update VS13 to VS13 Update 1
Update NuGet Packages in Package Manager Console.
Verify the current version of System.web.MVC and update it in the Views/Web.config file and also verify the version in Web.config of Root folder.
Related
I changed my Windows and when I installed Visual Studio 2017 again and opened my project, I realized I needed to install the ASP.NET Core 2.2 software development kit so that Visual Studio 2017 could read my ASP.NET Core code.
I installed the software development kit, but nothing changed at all - can anyone please help me?
I have installed all the software development kits of ASP.NET Core 2.2 and they can be seen on my C: drive.
this is what I get
Open visual studio installer and goto ASP.NET Web Development and check SDK core 2.2 for automatically install ASP .NET Core 2.2.
If you need to install manually than Click for ASP .NET Core Runtime and Click for ASP .NET Core SDK.
Go to this page https://dotnet.microsoft.com/download/dotnet-core/2.2 and download the version 2.2.7. It works with Visual Studio 2017. For some reason you need to click through the readmes and end up here https://github.com/dotnet/core/blob/master/release-notes/2.2/2.2.7/2.2.7-download.md. Then half-way down the page there is a link to the 64 bit (probably what you want) and 32 bit (probably not what you want ) Windows SDK installer. This seems a bit involved but they are all Microsoft sites. Remember to restart Visual Studio after installing.
In general, you can always find what you need to download by going to dot.net (clever, no?) and following the thread of information there.
Good luck.
I cloned an ASP.NET vNext project from github and I'm running VS .NET 2013. I was under the impression that Update 4 would allow me to open vNext projects with .kproj files, but I'm getting the following message:
Unsupported This version of Visual Studio is unable to open the
following projects. The project types may not be installed or this
version of Visual Studio may not support them.
Is there something else I need to do in .NET 2013 to open a .kproj project? I'd like to avoid 2015 if I can help it.
ASP.NET vNext is only supported in VS 2015.
You cannot open kproj files in a previous version
So brand new installation of .NET Framework 4.0 and Visual Studio 2010 on a brand new computer. Loading up Visual Studio 2010 and selecting New Project only lists the following project typess under "Web":
ASP.NET MVC 3 Web App
AjaxControlExtender
AjaxServerControl
ASP.NET Server Control
All of the other project types are missing and I can't load existing .NET projects (gives me the "project type not supported" error. Any idea what happened or how I can reinstall the missing templates?
I've already tried running devenv.exe /installvstemplates with elevated privileges.
If you didn't install the Visual Web Developer component, the ASP.NET project templates won't be fully installed. Naturally, because the installer then thinks it doesn't need to put them there as ASP.NET is a web development framework.
In that case, just run the installer again and make sure Visual Web Developer is checked. The installer will then add the appropriate project templates.
Default Project Templates in Visual Studio
Available templates may vary according to Visual Studio version, SKU,
installation options, and other customizations. If you are missing a
template that comes with your installation, run devenv.exe with the
/installvstemplates switch. For more information, see How to:
Restore Default Project Templates.
Today in one of the computer i installed visual studio 2010 professional edition, and successfully installed. But in my new project template "Asp.net MVC 2 website" is missing. Also I'm not able to open an already created MVC 2 project also. I'm also having MVC 2 installed with VS 2008 Sp1 in the same machine and is working fine. I uninstalled and installed again, the same is happening. Please help me out of this..
Have you tried downloading MVC 2 RTM separately following the Visual Studio 2010 install? Download here
Alternatively, did you have any of the betas or previews of MVC2 installed prior to installing Visual Studio 2010? You'll need to uninstall these.
When installing or modifying the installation of Visual Studio 2010 ensure you have 'Visual Web Developer' ticked. (see image below). If you just install C# you will not get MVC 2.
Are you creating a new website or project? I just did a fresh install of Professional and MVC 2 is only available under projects.
I've installed (in this order):
64bit Windows7,
64bit Visual Studio 2008,
Microsoft Free Web Platform Installer (WEB PI)
- installed iis7
- bunch of samples
- ...
asp.net mvc 1.0
Visual Studio 2008 sp1
When opening an existing solution with mvc web application in it, i get this error:
"The project type is not supported by this installation" on Visual Studio 2008
I've noticed that almost all project templates are stored under "Program Files (x86)" not under "Program Files"...
I've also repaired vs2008, asp.net mvc 1.0 and nothing worked...
Just some things to try:
Have you updated Visual Studio 2008 to SP1 (google for download - its a bigge)?
Have you removed all previous traces of ASP.Net MVC Beta and RC installs?
Does the project contain MSTest tests and the version you are using does not support MSTest?
How did you install IIS7 (or rather 7.5 on Windows 7)? Did you do this via Add Remove Windows Features, did you enable ASP.Net when you drill into Internet Information Server ?
Can you create a new ASP.Net MVC application does this show in Add New Projects? And copy the Web.config over to the existing one? It may be possible it was created with a previous version and the assembly identies are no longer than same.
When you install Visual Studio 2008 did you untick the Web application bit in the Customize/Advance by any chance (cant recall exact wording) but IIRC it appears as sibling on the branch where Visual C# option is.