.NET Blog

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

Content negotiation in MVC 6 (or how can I just write JSON)

[Update] - We decided to make two significant changes starting with Beta3, we are to not include the XML formatter by default, as well as special treat browsers. The content below is still relevant up to MVC 6 Beta2.IntroIn this blog, I intend to provide a simplified how-things-work and how-to-change-the-behavior. It is not intended as a deep ...

Microsoft Asp.Net MVC Security Update MS14-059 broke my build!

Microsoft just released a new security update to be automatically applied to machines configured to use Microsoft Update.  The security bulletin is available here: https://technet.microsoft.com/en-us/library/security/ms14-059Unfortunately, some ASP.NET MVC 3 and 4 VS projects can no longer build after the update is applied. These projects...

Announcing the Release of Web API OData 5.3

The NuGet packages for ASP.NET Web API OData 5.3 are now live on the NuGet gallery!Download this releaseYou can install or update the NuGet packages for ASP.NET Web API OData 5.3 using the NuGet Package Manager Console, like this: What’s in this release?This release primarily includes great new features for Web API OData v4 as ...

Announcing the Release Candidates for Web API OData 5.3

The release candidate NuGet packages for ASP.NET Web API OData 5.3 are now live on the NuGet gallery!Download this releaseYou can install or update the release candidate NuGet packages for ASP.NET Web API OData 5.3 using the NuGet Package Manager Console, like this: What’s in this release?This release primarily includes great new ...

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...

Scaffolding asynchronous MVC and Web API controllers for Entity Framework 6

Brief Entity Framework 6 introduces support for the .NET 4.5 asynchronous programming pattern using the async and await keywords. And in Visual Studio 2013 RC we’re making it easier for you to take advantage of this new capability by optionally generating asynchronous code when you scaffold MVC and Web API controllers. Why First ...

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 ...

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 ...

Feedback usabilla icon