.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Release Candidates for ASP.NET MVC 5.2, Web API 2.2 and Web Pages 3.2

The release candidate NuGet packages for ASP.NET MVC 5.2, ASP.NET Web API 2.2 and ASP.NET Web Pages 3.2 are now live on the NuGet gallery!Download this releaseYou can install or update the release candidate NuGet packages for ASP.NET MVC 5.2, ASP.NET Web API 2.2 and ASP.NET Web Pages 3.2 using the NuGet Package Manager Console, like this: ...

ASP.NET MVC 5 Lifecycle Document Published

Fresh out of the oven is a PDF document that charts the lifecycle of every ASP.NET MVC 5 application. Many of you have requested this document over the years and we're glad to finally put it in your hands now. You will find the PDF document very similar to the ASP.NET application lifecycle topic in its approach. It's a graphical representation...

Attribute Routing in ASP.NET MVC 5

Routing is how ASP.NET MVC matches a URI to an action. MVC 5 supports a new type of routing, called attribute routing. As the name implies, attribute routing uses attributes to define routes. Attribute routing gives you more control over the URIs in your web application. The earlier style of routing, called convention-based routing, is still ...

Debug ScriptBundle results in 404 if virtualPath parameter contains a dot

I spent some time debuging a ScriptBundle problem last Friday and want to share my experience. The original code in a MVC project App_Start/BundleConfig.cs file: Code Snippet And in a cshtml file, the bundle is included as: Code Snippet In local IIS Express debugging mode, I found no problem. So I deployed to...

The Aspnet Compiler Build Task in Visual Studio 2010 ASP.Net MVC 2 Projects

If you crack open the project file in an ASP.Net MVC 2 application (in notepad or unload your project and then click “Edit *.proj”), you will notice an interesting line. <MvcBuildViews>false</MvcBuildViews> This is an option to enable a post build task that will run the Asp_net compiler. This command will compile your ...

Visual Studio 2010 MVC 2 Upgrade Wizard

Prior to the RTM release of Visual Studio 2010, the only way to upgrade an ASP.Net MVC 1 application to ASP.Net MVC 2 was to use Eilon Lipton’s tool. With the release of Visual Studio 2010 you will now be able to open your MVC 1 projects in Visual Studio 2010 and upgrade them to ASP.Net MVC 2 projects. Also, you can upgrade the target ...

How to package .NET assemblies

If we want to package and deploy GACed dll, we need to use gacAssembly web deploy provider and extend our project similarly to the one stated in the how to package registry blog.  The extended projectName.wpp.targets file looks like following:   Then you can use the following command line to package the project with ...

ASP.Net MVC in Visual Studio 2010 Beta 2

Visual Studio 2010 Beta 2 contains ASP.Net MVC 2 in the box so there is no need to install an out of band update to Visual Studio 2010 to develop ASP.Net MVC applications. Phil Haack posted about the in-box experience for Beta 2 andd also provides some info on how to upgrade your ASP.Net MVC 1 apps to ASP.Net MVC 2. From a tooling perspective...

Single Project Add View in ASP.Net MVC 2 Preview 2

Last week we released ASP.Net MVC 2 Preview 2 for Visual Studio 2008 Sp1. In the box support for single project areas is now included and the Add View tool has been modified to streamline this scenario. A walkthrough that creates two simple single project areas can be found here. If you follow the steps in the walkthrough you will notice that ...

ASP.Net MVC for Visual Studio 2010 Beta1 Codeplex

ASP.Net MVC for Visual Studio 2010 is available for download here: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28527.There is no new functionality but you should be able to upgrade your applications to target the 4.0 framework (or leave them as is) if you would like to play with ASP.Net MVC on Dev10. Please read the ...