Adding Core References Support in an ASP.NET Empty Project

Adding Core References Support in an ASP.NET Empty Project

Rate This
  • Comments 4

Adding Core References Support in an ASP.NET Empty Project


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.


Let’s take the example of adding Web API core references in an
Empty ASP.NET Project

  • Open Visual Studio 2013 New Project Dialog
  • Choose “ASP.NET Web Application” under “Web” 
  • Select any template in the New ASP.NET Project

    Notice the three check boxes under “Add
    folders and core references for:”
  • The availability of Web Forms, MVC and Web API depend on which template you choose. For example, MVC is always selected for the MVC template. When you select Empty, all three are optional since it
    is an empty template.
  • To add Web API core reference, select Web API, then OK,  and then create project.
  • Examine the packages.config:

    Web API NuGet packages are all added.
  • Examine the Global.asax.cs:

    Web API is also registered.


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 limited to empty template only. They’re supported on all six template.

This approach is a very helpful function to set up a customized ASP.NET project quickly.

Leave a Comment
  • Please add 4 and 8 and type the answer here:
  • Post
  • I don´t understand the difference between MVC Project + WebForms Checked and WebForms Project + MVC Checked, or Empty Project with MVC and WeForms checked.

  • Hi Felipe,

    The base template comes with difference elements. MVC template use razor pages while Web Forms use tradition aspx. The additional core references add nuget packages and add necessary registry codes. Empty template doesn't have any pre-build pages.



  • Thank you for this article.  While I now understand the HOW I'm not sure I understand the WHY?  What scenario / problem is this solving?  How is this an improvement over the previous version of Visual Studio / ASP.NET?  Thank you!

  • ¿And how to add folders and core references to an existent ASP.NET Project?

Page 1 of 1 (4 items)