I am using VS 2010 and I want to use MVC 3 Architecture since i need Razor C# and it is not possible in my Visual studio. Currently it is availing me only MVC 2 so C# Razor is not possible
So how do i upgrade my VS so as to use MVC 3 with Razor C# ?
you should install asp.mvc 3 to use razor view in asp.net.
you can find it easily on asp.net. it is an open source.
I hope you need to install VS 2010 service pack 1. And Install the MVC 3 framework
Related
How can I use web api 2 in Visual Studio 2010.
Is there any way I can use web api 2 in VS 2010?
Can somebody please help or guide?
If you want to include Framework version 4, you can follow these steps. In Visual Studio 2010 to add a project of type ASP.NET MVC Web API we can:
1 - Have .NET Framework 4 & ASP.NET MVC 4 installed.
2 - Add a new project and select MVC 4
( on this screen there is no Web API template which is where many users may expect to see it )
3 - Select the Web API Template
You can see the answer here
But in your case, you need to install framework version 4.5. Each version of Visual Studio prior to Visual Studio 2010 is tied to a specific .NET framework. Visual Studio 2010 and beyond allow for targeting of prior framework versions but cannot be used for future releases. You must use Visual Studio 2012 in order to utilize .NET 4.5.
But one user has found a scenario where we can use framework version 4.5 in VS 2010, please see the answer of David Woodward here. If you can install VS 2012, it will be much easier since you don't need to download and install anything else.
I am trying to open an MVC 3 project on my system but I am getting following error:
Microsoft Visual Studio
The project file 'C:\Users\abc\Desktop\trunk\iCorpNow\iCorpNow.csproj' cannot be opened.
The project type is not supported by this installation.
OK Help
I have both asp.net MVC 2 and asp.net MVc 3 installed on my development machine
I have windows 7 installed on my machine.
I have visual studio 2010 ultimate installed.
Project is developed using asp.net MVc 3 and on Windows server 2008 using Visual studio professional 2010
Please suggest me how to fix this error.
Here are the project types listed in my project file
<ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
Thanks.
The problem you're having is that your project using Asp.Net MVC4 but you've only installed 2 and 3. If you install Asp.Net MVC4 it should allow you to open the project.
The way to tell that this is the problem is by examining the GUIDs which are associated with the ProjectType entry in the project file. In this example they are
{fae04ec0-301f-11d3-bf4b-00c04f79efbc}: C# project
{349c5851-65df-11da-9384-00065b846f21}: Web Application
{E3E379DF-F4C6-4180-9B81-6769533ABE47}: Asp.Net MVC 4
Both C# and Web Application come standard with Visual Studio Pro and above hence the missing piece must be Asp.Net MVC 4
I also had this problem and I found my answer here:
http://social.msdn.microsoft.com/Forums/en-US/06cf7bca-982c-44cf-aec9-99cf399b3000/the-project-type-is-not-supported-by-this-installation
In short:
open Visual Studio Command Prompt
run "devenv /setup" from the command line
Also, you must have MVC3 or 4 or whatever is required before you run this command.
I've got VS 2010 (no service pack) and asp.net MVC 3 installed. I would like to try out the VS2010 SP1 beta but afraid that it will break my MVC 3 projects.
Does anyone know if i can install SP1 beta right on top of MVC 3 RTM?
It looks like this is being discussed here:
Installation of Visual Studio 2010 Service Pack 1 Beta and Asp.net MVC 3
We need to install ASP.NET MVC on several developers machines with VS2010. Unfortunately the only files I can find in the Microsoft Download Center are labelled as ASP.NET MVC installer for VS2008.
Can someone please point me in the direction of installer for VS2010, or can the VS2008 one also work for VS2010?
Thanks,
Dany.
VS2010 comes with ASP.NET MVC 2 project templates already available out of the box.
ASP.NET MVC 2 Beta was just released and I'm a bit confused as to what is required to run it.
Does it require .NET 4?
If I have an App that was created using Visual Studio 2010 Beta 2, can I port it to ASP.NET MVC 2 Beta by referencing the proper DLLs? If so what DLLs do I need?
Can I run ASP.NET MVC Beta 2 on .NET 4 ready hosting server (with ASP.NET MVC 2 Beta installed)?
In this comment by Phil Haack, he offers instructions on how to run "ASP.NET MVC 2 on VS2008 side by side with VS2010". If I do this setup, would I be able to run an ASP.NET MVC 2 Beta with VS 2010 Beta 2 but without the tools?
http://www.microsoft.com/downloads/details.aspx?FamilyID=4817cdb2-88ea-4af4-a455-f06b4c90fd2c&displaylang=en
If you read through the download page, you can see only .NET Framework 3.5 SP1 is necessary. So .NET Framework 4 is not required.
This should help: http://www.hanselman.com/blog/CheesyASPNETMVCProjectUpgraderForVisualStudio2010Beta1.aspx
Update
I misread the question. Based on this post by Phil Haack, it appears you can't migrate from VS 2010 Beta 2 to ASP.NET MVC 2 Beta:
Unfortunately, because Visual Studio 2010 Beta 2 and ASP.NET MVC 2 Beta share components which are currently not in sync, running ASP.NET MVC 2 Beta on VS10 Beta 2 is not supported.