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

.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

Introducing batch support in Web API and Web API OData
Nov 1, 2013
Post comments count 0
Post likes count 0

Introducing batch support in Web API and Web API OData

Javier Calvarro Nelson
Javier Calvarro Nelson

With the release of Microsoft ASP.NET Web API 2 OData, we have introduced support for batching requests. Batching is a web API feature that allows a customer to pack several API requests and send them to the web API service in one HTTP request and receive a single HTTP response with the response to all their requests. This way, the client can optimize calls to the server and improve the scalability of its service. For a more in depth look at the batch support, you can take a look at the specification. Batch in Web API In order to start using batch in Web API, the only requirement is to register a route w...

Tutorial series updated for Entity Framework 6 Code First with MVC 5
Nov 1, 2013
Post comments count 0
Post likes count 0

Tutorial series updated for Entity Framework 6 Code First with MVC 5

Tom Dykstra - MSFT
Tom Dykstra - MSFT

We have updated our EF Code First / MVC tutorial series to use Visual Studio 2013, Entity Framework 6, and MVC 5. New Entity Framework 6 features covered in these tutorials include: The series includes the following tutorials: The old EF 5 / MVC 4 series is still available at a new URL: The old series covers some topics that have not been included in the new series yet.  We plan to add these to the new series later: If there are other topics you’d like us to cover in these tutorials that we haven&rsq...

Tips When Making Changes in Entity Framework Code First Models after Scaffolding
Nov 1, 2013
Post comments count 0
Post likes count 0

Tips When Making Changes in Entity Framework Code First Models after Scaffolding

AnhPhan
AnhPhan

When you scaffold an existing Entity Framework model, using MVC5 scaffolding in Visual Studio 2013, you can easily run into the issue of “The model backing the <DbContextName> context has changed since the database was created” as shown below. For example, in an MVC project, add the following model. Scaffold the Product model using “MVC 5 Controller with views, using Entity Framework” scaffolder in Visual Studio 2013. View the generated pages, Index/Edit/Details/Create, to verify things are working properly. Now, suppose we need to modify the Product model to add more fields, like Description ...

New Tutorial Published on Migrating to ASP.NET Identity
Oct 30, 2013
Post comments count 0
Post likes count 0

New Tutorial Published on Migrating to ASP.NET Identity

suhasbj
suhasbj

ASP.NET Identity is the new membership system for building ASP.NET applications. The new tutorial  explains how to migrate an application that uses ASP.NET Membership to the new ASP.NET Identity system. The tutorial shows how to enable existing users to log in with the new Identity system by migrating the database tables that store user credentials, roles and  profile information. The tutorial shows how to migrate from SQL Membership, but the concepts can also be used to migrate from Universal Providers or Simple Membership Providers. Once the migration is completed, you can use...

Web publishing updates for app offline and usechecksum
Oct 29, 2013
Post comments count 0
Post likes count 0

Web publishing updates for app offline and usechecksum

Sayed Ibrahim Hashimi
Sayed Ibrahim Hashimi

In Visual Studio 2013 we have added a couple of small features for web publishing that I’d like to share with you. Those updates are; how to take your app offline during publishing and how you can update the default file compare option. App offline support In Visual Studio when you publish your web application we do not force the remote app to be stopped/restarted. Based on your publishing artifacts your site may end up being restarted (for example you change web.config) but Visual Studio never had a way to take your application offline during a publish operation. There are a lot of reasons why you may want to...

Sending a CORS Request in IE
Oct 28, 2013
Post comments count 0
Post likes count 0

Sending a CORS Request in IE

Xueyuan Dai
Xueyuan Dai

From the time we added CORS support for ASP.NET WEB API, we have seen many questions on its usage, including questions about sending cross-origin requests (CORS) from IE. IE 10 and higher fully support using XMLHttpRequest to send cross-origin requests. CORS for XHR in IE10  is a great blog post on this approach.CORS is also supported in IE 8/9, however, in a different way. Instead of XMLHttpRequest, an XDocumentRequest object is used to send cross-origin requests. Here’s another good reading about it: http://blogs.msdn.com/b/ieinternals/archive/2010/05/13/xdomainrequest-restrictions-limitati...

How to use XDT in NuGet – Examples and Facts
Oct 24, 2013
Post comments count 0
Post likes count 0

How to use XDT in NuGet – Examples and Facts

danliu-nuget
danliu-nuget

Starting with NuGet 2.6, XML-Document-Transform (XDT) is supported to transform XML files inside a project. The XDT syntax can be utilized in the .install.xdt and .uninstall.xdt file(s) under the package’s Content folder, which will be applied during package installation and uninstallation time, respectively. One of XDT’s greatest strengths is its simple but powerful syntax for manipulating the structure of an XML DOM. Rather than simply overlaying one fixed document structure onto another structure, XDT provides controls for matching elements in a variety of ways, from simple attribute name matching ...

Adding Core References Support in an ASP.NET Empty Project
Oct 22, 2013
Post comments count 0
Post likes count 0

Adding Core References Support in an ASP.NET Empty Project

Xueyuan Dai
Xueyuan Dai

Adding Core References Support in an ASP.NET Empty Project Brief In Visual Studio 2013 we introduced the core reference framework to ASP.NET project creation. You can choose what core references you want in your to-be-created project. How Let’s take the example of adding Web API core references in an Empty ASP.NET Project Summary As you can see, adding the core references will not only add the required NuGet packages but also correctly configure the app for the selected core reference. Similarly you can add MVC and  or Web Forms support in the same way. And the supported core references are not l...

Building a simple ToDo application with ASP.NET Identity and associating Users with ToDoes
Oct 20, 2013
Post comments count 1
Post likes count 0

Building a simple ToDo application with ASP.NET Identity and associating Users with ToDoes

pranav rastogi
pranav rastogi

Hello everyone. I was prompted to write this post from a comment I received on http://blogs.msdn.com/b/webdev/archive/2013/10/17/announcing-release-of-asp-net-and-web-tools-for-visual-studio-2013.aspx. I am pasting the comment verbatim from the post “I'm having a lot of difficulty integrating the IdentityDbContext with other DbContexts to create a comprehensive model and database for my applications. If the membership system always stood on its own, there wouldn't be an issue but the User ID typically gets used throughout other models and tables (think of a blog, for example, where some authenticated users are ...