A Guide to What’s New for Web Developers – WebMatrix, ASP.NET MVC 3, and More
Last week, a set of new technologies was released: WebMatrix 1.0, ASP.NET MVC 3, IIS 7.5 Express, SQL Server Compact 4.0, Orchard, Web Deploy 2.0, Web Farm Framework 2.0, and NuGet.
I’ll briefly introduce each release in this post, but here are some overviews I’d recommend:
- Blog post: Scott Guthrie – Details aplenty.
- Blog post: Scott Hanselman – Great overview (with a nice summary of why you shouldn’t feel overwhelmed)
- Video: This Week on Channel 9 “WebMatrix, MVC, Orchard, NuGet Gallery” – Dan Fernandez and Clint Rutkas
WebMatrix 1.0
WebMatrix is a free tool for easily creating and publishing websites using Windows.
It includes the underlying tech - web server, database, and framework (more on these next) - and you can create sites quickly from open source applications (see the Windows Web App Gallery) or from scratch.
And WebMatrix isn’t just for ASP.NET, you can use WebMatrix for PHP applications as well.
Wondering about Visual Studio? WebMatrix makes it easy to get started making websites, but when you’re ready for the additional features Visual Studio offers, there’s an easy transition there as well.
Learning More:
- Microsoft WebMatrix Home
- WebMatrix Launch Keynote at CodeMash
- Web Development 101 Using WebMatrix
- Getting Started with WebMatrix and ASP.NET Web Pages
IIS 7.5 Express
IIS 7.5 Express is free, lightweight, self-contained version of the full IIS 7.5, but focuses on developer support. See the IIS 7.5 Express Readme for details and a comparison.
IIS 7.5 Express is included with WebMatrix, and can be installed separately via the Web Platform Installer or downloaded from the Microsoft Download Center.
It can be used side-by-side with full installations of IIS, and can be used instead of the ASP.NET Development Server (aka Cassini) with Visual Studio 2010 SP1 Beta. Scott Guthrie’s post has the details.
Learning More:
- VS 2010 SP1 and IIS Express – Scott Guthrie
- IIS 7.5 Express Readme
- IIS Express – Scott Guthrie
SQL Server Compact 4.0
Like IIS 7.5 Express, SQL Server Compact 4.0 is a free and easy-to-use option. In fact, it supports deployment by simply including the binaries with your web application.
SQL Server Compact 4.0 is included with WebMatrix as the default database, or can be downloaded separately from the Microsoft Download Center.
Learning More:
- SQL Server Compact 4.0 Home
- VS 2010 SP1 and SQL CE – Scott Guthrie
- Microsoft SQL Server Compact 4.0 is Available for Download – SQL Server Compact Team Blog
ASP.NET MVC 3
ASP.NET MVC 3 offers many new features and improvements. Here’s a sampling:
- Razor view engine (also used in WebMatrix)
- Global action filters
- New validation attributes (e.g. Compare and Remote)
- Dependency injection improvements
- Improved (and extensible) New Project dialog
- New ActionResult-based classes
- New support for unobtrusive jQuery Ajax and Validation
- ViewBag for simpler data passing
Read more about this release in the links below. Install ASP.NET MVC 3 with the Web Platform Installer or download directly.
Learning More:
- ASP.NET MVC 3 Home
- Intro to ASP.NET MVC 3 tutorial (also in Visual Basic)
- ASP.NET MVC 3 Release Notes
Web Farm Framework 2.0 and Web Deploy 2.0
Web Farm Framework (WFF) 2.0 helps to simply management of and deployment to multiple servers. It includes a central interface for running operations and surveying status of a web farm, and supports PowerShell. Web Deploy 2.0 has been improved to support IIS Express and is also used by WebMatrix.
You can download WFF via the Web Platform Installer, or from the Microsoft Download Center. Web Deploy 2.0 is available here.
Learning More:
- Web Farm Framework – IIS.net
- Web Farm Framework 2.0 – Release to Web – RuslanY Blog
NuGet
NuGet is an extension for Visual Studio (it also works within WebMatrix) that helps you discover and download open source packages for use in your applications. It offers a PowerShell-based console window and a dialog-based UI as well.
Choose a package you’d like to use and NuGet will download it and make any required changes to your project (e.g. references and config changes) so you can start using it.
NuGet is included with ASP.NET MVC 3, and can be downloaded in Visual Studio 2010 using the Extension Manager the Web Platform Installer or from CodePlex.
Learning More:
- NuGet Home
- NuGet Overview
- NuGet on CodePlex
- “ASP.NET MVC 3 and NuGet 1.0 Released (Including Source Code!)” – Phil Haack
Orchard
Orchard is a free, open-source Content Management System (CMS) built on ASP.NET. It’s easy to extend with modules and themes, whether your own or from the Orchard gallery. There’s an active community as well.
You can install Orchard with the Web Platform Installer or download binaries or source directly.
Learning More:
- Orchard Home
- Orchard on CodePlex
- Orchard Documentation
- Installing Orchard and Building Your First Orchard Site
Enjoy delving into these new releases!
-Chris