Which Version of ASP.net MVC I'm having? - asp.net-mvc

This seems really silly but;
How can I know which version of ASP.net MVC I've on my system. I've tried Help->About in Visual Studio (2008) but its not there.

When you're in the New Project window, look at the installed templates under web. ASP.NET MVC Web Application is 1.0 (and will say so in the description). The same goes for ASP.NET MVC 2.
alt text http://dusda.com/files/projectswindow.png

In the Control Panel > Add/Remove Programs, I see "Microsoft ASP.NET MVC 1.0" on my machine...
I also see the following comment between the project type selection window and the filename box when I go to start a new MVC project:
"A project for creating an application using the ASP.NET MVC framework (1.0) (.NET Framework 3.5)"

Related

ASP.NET MVC 4 RC Missing Use HTML5 Semantic Markup

I am working with Visual Studio 2010 - SP1
I installed ASP.NET MVC 4.0 RC on my box. The option "Use HTML5 semantic markup" is missing in all the project templates (empty application, Web Api, Internet app, Intranet App) when creating a new project of ASP.NET MVC 4.0 Web Application project type.
Remember, I have not installed asp.net mvc 4 beta prior to RC installation. However, this option is present when creating an asp.net mvc 3.0 web application.
You have to install this extension :
Web Standards Update for Microsoft Visual Studio 2010 SP1
Also consider installing Web Essentials. It add a tons of useful tools related to web development.

How to create a new ASP.NET MVC web-site in Visual Studio?

From asp.net/mvc i downloaded the MVC 3 Installer, and ran it:
When it finished, i loaded Visual Studio and tried to create a "New" Web-site. But there's no option to create an ASP.NET MVC web-site:
i expected to see something like what's shown on the ASP.NET MVC homepage:
There is also a Getting Started tutorial that lists the steps to follow:
Creating Your First Application
You can create applications using either Visual Basic or Visual C# as
the programming language. Select Visual C# on the left and then select
ASP.NET MVC 3 Web Application.
After that didn't work, i also tried:
a web platform installer
another Web Platform Installer (from the MVC3 homepage)
or download the installer here (also from the MVC3 homepage)
Click on File -> New PROJECT (NOT WEBSITE). it should be in your list
Look in your control panel
DO you have -
Click on New Project and Under Visual C#, select the Web Menu Item. In the list of projects you should see a ASP.NET MVC3 Web Application. Thats what you need to use.
Btw - Are you using Visual Studio Express??

Enable Razor for Views

How do I enable razor syntax (??) for my MVC project (New, not existing). I have visual studio 2010 Ultimate, and http://support.microsoft.com/kb/2385361 update. Is there something else I need to install to enable the latest MVC (3??) options?
You just need to install ASP.NET MVC 3. Easiest way is through the Web Platform Installer (WebPI).
http://www.asp.net/mvc/mvc3
This will give you a new ASP.NET MVC 3 Web Application template in File... New... Project... in VS2010. The wizard should default to Razor, though it's selectable in the View engine dropdown on the first (and only) page of the wizard.
You need to install MVC3 from Microsoft Web Platform Installer http://www.microsoft.com/web/downloads/platform.aspx
You need to install asp.net MVC version 3. Razor view engine is the default one then.

After installing MVC3, I can't create or open projects for MVC2 on visual studio 2010

Opening MVC2 Projects just makes "project not supported" error on visual studio, and i can't find the template for creating new projects for mvc2.
I undertand that the mvc2 new project template could be not desired after installing mvc3, but the support for editing and maitaining mvc2 projects should still be there.
in the release notes it states:
ASP.NET MVC 3 can be installed side by
side with ASP.NET MVC 2 on the same
computer, which gives you flexibility
in choosing when to upgrade an ASP.NET
MVC 2 application to ASP.NET MVC 3
I know I have mvc1, mvc2 and mvc3 dlls "side by side" on my GAC, but i'm still hoping this visual studio error is a error in my setup.
If not, ¿Is possible to upgrade the project file and keep all contents the same, pointing to the mvc2 dll?
To answer my own question after a few attempts:
Yes, it is possible to upgrade the project without altering MVC2. Just apply step 8 of the manual migration procedure on the release notes for MVC3:
8- Locate the ProjectTypeGuids element and replace
{F85E285D-A4E0-4152-9332-AB1D724D3325}
with
{E53F8FEA-EAE0-44A6-8774-FFD645390401}.
and reload the project.
This should be all.
The downside is that if other people are working on this project, they will now need to install MVC3 too, in order to get Visual Studio to recognize this new project GUID.

How do I create a new ASP.NET MVC website from template in Visual Web Developer 2008 Express?

I installed Visual Web Developer 2008 Express SP1 and then ASP.NET MVC 1.0, but when I go to File > New Website, ASP.NET MVC doesn't show up.
You have to create a new Project, not a new Website. Go to File > New Project, under the Web project types you'll see ASP.NET MVC Web Application.
Try going to here.
ASP.NET
Not really an answer to your question I guess but it does have MVC Site designs.

Resources