Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE

Articles tagged with: MVC

12
November
2010

A few quick ASP.NET MVC 3 Installation Notes
4.3/5 rating (4 votes)

On Tuesday Posted about the recent release of the ASP.NET MVC 3 RC build.  You can read more about it here.

This post is a quick follow-up post that discusses a few installation issues that we’ve seen people run into - and how to fix them:

ASP.NET MVC 3 RC and C#/VB Async CTP

Two weeks ago the VS languages team released an early preview of some cool language improvements to VB and C# that we are working on for asynchronous programming.  Unfortunately it isn’t possible to have both the Async CTP and the ASP.NET MVC 3 RC installed on the same machine at the same time.  You instead need to choose one or the other right now – installing both will cause problems.

If you’ve already installed the Async CTP and want to install the ASP.NET MVC 3 RC, then you need to use Add/Remove Programs and uninstall the Async CTP.  Once it is uninstalled, then you can safely install the ASP.NET MVC 3 RC build on your machine without problems.

If you’ve already installed both the Async CTP and ASP.NET MVC 3 RC on the same machine, then you will likely experience issues in VS with debugging (and potentially other things) not working.  To fix this, go to Add/Remove Programs and uninstall both the ASP.NET MVC 3 RC build (including the VS Tools components for it) and the Async CTP. Once you’ve uninstalled both your machine will be back to a clean state and working fine.  You can then choose to install either the Async CTP or ASP.NET MVC 3 RC and it will work fine.

Razor Intellisense and Resharper

ReSharper is a popular product from JetBrains that enhances Visual Studio’s intellisense and code editing features.  If you have ReSharper installed and want to take advantage of the Razor intellisense support we added to the ASP.NET MVC 3 RC build, please read this blog post from JetBrains which discusses ways to use them together today.

NuPack/NuGet Schema and Feed Updates

We’ve made some schema and feed modifications to NuGet since the original preview release of it that will prevent you from updating packages that were added with the original preview build.  When updating to the ASP.NET MVC 3 RC, you’ll need to delete your existing packages and re-add them to your project to account for this.  You can do this by deleting the packages from disk, and then run the install-package command again. 

09
November
2010

ASP.NET MVC 3 Release Candidate
4.4/5 rating (5 votes)

Today’s ASP.NET MVC 3 RC build includes several additional feature refinements (in addition to bug fixes, tooling improvements, perf tunings, etc).  This blog post covers the improvementsspecific to today’s release.  Please review my previous posts to learn more about the many, many other ASP.NET MVC 3 features and improvements introduced in prior previews/betas.

download-now 

 

Razor Intellisense within Visual Studio

Colorization and intellisense support for Razor-based view templates is now supported within Visual Studio and the free Visual Web Developer Express.

Intellisense works for HTML, C#, VB, JavaScript and CSS when editing within razor based view templates:

image

You get full C#/VB code intellisense – including against HTML helper methods (all of the existing Html helper methods in ASP.NET MVC also work just fine in Razor based views):

image1

 

20
May
2010

May 20th Links: ASP.NET MVC, ASP.NET, .NET 4, VS 2010, Silverlight
4.0/5 rating (2 votes)

ASP.NET MVC

  • ASP.NET MVC with jTemplates Part 1 and Part 2: Steve Gentile has a nice two-part set of blog posts that demonstrate how to use the jTemplate and DataTable jQuery libraries to implement client-side data binding with ASP.NET MVC.

  • How to Configure VS 2010 Code Coverage for ASP.NET MVC Unit Tests: Visual Studio enables you to calculate the “code coverage” of your unit tests.  This meas ures the percentage of code within your application that is exercised by your tests – and can give you a sense of how much test coverage you have.  Gunnar Peipman demonstrates how to configure this for ASP.NET MVC projects.

  • Shrinkr URL Shortening Service Sample: A nice open source application and code sample built by Kazi Manzur that demonstrates how to implement a URL Shortening Services (like bit.ly) using ASP.NET MVC 2 and EF4.  More details here.

  • Creating RSS Feeds in ASP.NET MVC: Damien Guard has a nice post that describes a cool new “FeedResult” class he created that makes it easy to publish and expose RSS feeds from within ASP.NET MVC sites.