.NET Blog

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

Featured posts

.NET Aspire 9.3 is here and enhanced with GitHub Copilot!
May 19, 2025
Post comments count 0
Post likes count 5

.NET Aspire 9.3 is here and enhanced with GitHub Copilot!

Jeffrey T. Fritz
Jeffrey T. Fritz

.NET Aspire 9.3 is the biggest release of .NET Aspire yet, with the introduction of GitHub Copilot directly into the .NET Aspire Dashboard, updates for integrat...

.NETASP.NET CoreC#

Latest posts

HttpClient 2.2 is now stable
Jul 17, 2013
Post comments count 0
Post likes count 0

HttpClient 2.2 is now stable

Immo Landwerth
Immo Landwerth

As promised, we’ve just pushed the RTM version of HttpClient 2.2 to NuGet. This version adds support for automatic decompression. As announced here, this doesn’t require a dependency on Microsoft.Bcl.Compression. This allowed us to support automatic decompression on more platforms and without forcing your projects to change the CPU architecture. It’s worth noting that we didn’t make any changes since the RC version we published a week ago (despite changing the version). How to use automatic decompression (For the sake of keeping this post self-contained I’ve copied the content from t...

Tracing in ASP.NET MVC Razor Views
Jul 16, 2013
Post comments count 0
Post likes count 0

Tracing in ASP.NET MVC Razor Views

Tom Dykstra - MSFT
Tom Dykstra - MSFT

System.Diagnostics.Trace can be a useful tool for logging and debugging, and sometimes it would be handy to be able to call one of the tracing methods from a Razor view. For example, when an MVC application runs in production, by default MVC catches most application exceptions for you and routes them to Views/Shared/Error.cshtml. That view doesn’t show error details for security reasons, so you end up with the not-very-helpful message “An error occurred while processing your request.” Running locally you get detailed error info, or you can catch exceptions by running in debug mode, but what to do about err...

Responsible for a million dollar software project, but don’t know where to start?
Jul 16, 2013
Post comments count 0
Post likes count 0

Responsible for a million dollar software project, but don’t know where to start?

.NET Team
.NET Team

This post was written by Cesar De la Torre Llorente, a member of the .NET Marketing team. Cesar provides guidance on .NET to customers and to sales, marketing, and support professionals at Microsoft. We just released a new guide that provides a global and broad picture of Microsoft development technologies for business applications. You can learn more at our .NET Technology Guidance site, or download the .NET Technology Guide for Business Applications directly. This guide is primarily intended for decision makers, architects, and developers who are responsible for selecting technologies and patterns for the...

“Enable Edit and Continue” debugging option is now on by default for new web applications in VS2013 preview
Jul 11, 2013
Post comments count 0
Post likes count 0

“Enable Edit and Continue” debugging option is now on by default for new web applications in VS2013 preview

Xinyang Qiu
Xinyang Qiu

In VS2010 and VS2012, the edit and continue option is disabled by default when creating a new web application project. In VS2013 preview, we turned it on by default. You can find this option on the Web tab in the web project’s properties window.   With “Enable Edit and Continue” on, the VS debugger starts your web application in IIS Express. When you stop debugging, IIS Express is closed too. With this behavior, you will see the IIS Express system tray shows up during debugging and gone after debugging. This behavior is the same as in VS2012 when the Enable Edit and Continue option is tu...

HttpClient 2.2 is now RC
Jul 10, 2013
Post comments count 0
Post likes count 0

HttpClient 2.2 is now RC

Immo Landwerth
Immo Landwerth

Today we are happy to announce the next step in providing a portable HttpClient with automatic decompression: we just pushed the RC version to NuGet. From Beta to RTM We haven’t changed much since the beta we shipped three weeks ago – simply because we didn’t have to. In general we follow these steps when shipping functionality via NuGet: For HttpClient 2.2 we’ve changed the following since the beta: Summary Today we’ve shipped the RC for HttpClient 2.2, which updates HttpClient by adding support for automatic decompression. It's supported on .NET 4.0, Windows Pho...

How does VS determine which version of Razor engine to use when editing razor webpage files
Jul 10, 2013
Post comments count 0
Post likes count 0

How does VS determine which version of Razor engine to use when editing razor webpage files

Xinyang Qiu
Xinyang Qiu

In VS2013 Preview, we released new Razor V3 runtime and design time Engine to support MVC5 and Razor V3 website’s runtime and design time behavior. Unlike Razor V2 runtime and design time, VS2013 did not GAC these binaries. Instead, the binaries are installed in the project bin folder when corresponding NuGet package is installed, and in “%ProgramFiles (x86)%\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\Web\Razor\v3.0” to support design time. As in VS2012 to determine which razor v1/v2 design time dlls to load, VS 2013 preview first use web.config file key <add key="web...

Introducing $select and $expand support in Web API OData
Jul 5, 2013
Post comments count 0
Post likes count 0

Introducing $select and $expand support in Web API OData

Javier Calvarro Nelson
Javier Calvarro Nelson

Last week Microsoft released the preview of Visual Studio 2013, and along with it came the ASP.NET and Web Tools for Visual Studio 2013 Preview. In this new release, we are expanding the OData support in Web API to include support for $select and $expand, two of the most popular OData query operators. In this blog post we’ll cover the following topics: What are $select and $expand The $select operator allows a client to pick a subset of the properties of an entity to be retrieved when querying a feed or a single entity. The $expand operator allows a client to retri...

Understanding OWIN Forms authentication in MVC 5
Jul 3, 2013
Post comments count 0
Post likes count 0

Understanding OWIN Forms authentication in MVC 5

Hongye Sun - MSFT
Hongye Sun - MSFT

Overview The new security feature design for MVC 5 is based on OWIN authentication middleware. The benefit for it is that security feature can be shared by other components that can be hosted on OWIN. Since the Katana team did a great effort to support the OWIN integrated pipeline in ASP.NET, it can also secure apps hosted on IIS, including ASP.NET MVC, Web API, Web Form. Forms authentication uses an application ticket that represents user's identity and keeps it inside user agent's cookie. When user first accesses a resource requiring authorization, it will redirect user to login page. After the user provides ...

Manage CORS policy dynamically
Jul 2, 2013
Post comments count 0
Post likes count 0

Manage CORS policy dynamically

Xueyuan Dai
Xueyuan Dai

Brief We introduced CORS support in ASP.NET Web API a few months ago. Out of the box it supports configuring CORS policy by attributes. It is a very intuitive and powerful way but lacks flexibility at runtime. Imaging your service allows a 3rd party to consume your service. You need the capability of updating the allowing origins list without compiling and deploying your service each time the list changes. In following this article, I show you two examples of dynamically managing your CORS policy. Prerequisites Set up the test environment CORS Service Create a WebAPI project. It co...