---
title: ".NET Boxed - Muhammad Rehan Saeed"
description: ".NET Boxed is a set of project templates with batteries included, providing the minimum amount of code required to get you going faster."
canonical_url: "https://rehansaeed.com/net-boxed/"
last_updated: "2018-05-13T00:00:00+00:00"
meta:
  author: "Muhammad Rehan Saeed"
  keywords: ".NET Boxed,.NET Core,API,ASP.NET Core,ASP.NET Core Boilerplate,GraphQL,Swagger"
  "og:description": ".NET Boxed is a set of project templates with batteries included, providing the minimum amount of code required to get you going faster."
  "og:image": "https://rehansaeed.com/_og/s/o_76eee19bc46f7dbf.png"
  "og:image:alt": ".NET Boxed - Muhammad Rehan Saeed"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": ".NET Boxed"
  "twitter:image": "https://rehansaeed.com/_og/s/o_76eee19bc46f7dbf.png"
  "twitter:image:alt": ".NET Boxed - Muhammad Rehan Saeed"
---

> Index of every page on this site: [llms.txt](https://rehansaeed.com/llms.txt)

# [.NET Boxed](https://rehansaeed.com/net-boxed/)

Posted 13 May 2018 - **2 min read**

![Dotnet Boxed](https://rehansaeed.com/_ipx/f_png&s_2560x1440/images/hero/Dotnet-Boxed-1366x768.png)

[.NET Boxed](https://github.com/Dotnet-Boxed/Templates) is a set of project templates with batteries included, providing the minimum amount of code required to get you going faster. Right now it includes API and GraphQL project templates.

# ASP.NET Core API Boxed Link to this section

The default [ASP.NET Core API Boxed](https://github.com/Dotnet-Boxed/Templates/blob/main/Docs/API.md) options will give you an API with [Swagger](https://swagger.io/), ASP.NET Core versioning, HTTPS and much more enabled right out of the box. You can totally turn any of that off if you want to, the point is that it's up to you.

![ASP.NET Core API Boxed Preview](https://rehansaeed.com/_ipx/f_png&s_2560x1440/content-images/posts/2018/net-boxed/images/API-Preview.png)

# ASP.NET Core GraphQL Boxed Link to this section

If you haven't read about or learned [GraphQL](http://graphql.org/) yet, I really suggest you go and follow their short online tutorial. It's got some distinct advantages over standard REST'ful API's (and some disadvantages but in my opinion the advantages carry more weight).

Once you've done that, the next thing I suggest you do is to create a project from the [ASP.NET Core GraphQL Boxed](https://github.com/Dotnet-Boxed/Templates/blob/main/Docs/GraphQL.md) project template. It implements the GraphQL specification using [GraphQL.NET](https://github.com/graphql-dotnet/graphql-dotnet) and a few other NuGet packages. It also comes with a really cool GraphQL playground, so you can practice writing queries, mutations and subscriptions.

![ASP.NET Core GraphQL Boxed Preview](https://rehansaeed.com/_ipx/f_png&s_2560x1440/content-images/posts/2018/net-boxed/images/GraphQL-Preview.png)

This is the only GraphQL project template that I'm aware of at the time of writing and it's pretty fully featured with sample queries, mutations and subscriptions.

# ASP.NET Core Boilerplate Link to this section

.NET Boxed used to be called ASP.NET Core Boilerplate. That name was kind of forgettable and there was another great project that had a very similar name. I put off renaming for a long time because it was too much work but I finally relented and got it done.

In the end I think it was for the best. The new [.NET Boxed](https://github.com/Dotnet-Boxed/Templates) branding and logo are much better and I've opened it up to .NET project templates in general, instead of just ASP.NET Core project templates.

Thanks to [Jon Galloway](https://twitter.com/jongalloway) and [Jason Follas](https://twitter.com/jfollas) for helping to [work out the branding](https://twitter.com/jongalloway/status/991342926067154945).

# How can I get it? Link to this section

1. Install the latest .NET Core SDK.
2. Run `dotnet new --install "Boxed.Templates::*"` to install the project template.
3. Run `dotnet new api --help` to see how to select the feature of the project.
4. Run `dotnet new api --name "MyTemplate"` along with any other custom options to create a project from the template.

# Boxed Updates Link to this section

There are new features and improvements planned on the GitHub [projects](https://github.com/Dotnet-Boxed/Templates/projects) tab. ASP.NET Core 2.1 is coming out soon, so look out for updates which you can see in the GitHub [releases](https://github.com/Dotnet-Boxed/Templates/releases) tab when they go live.

## Web Mentions

[What's this?](https://en.wikipedia.org/wiki/Webmention)

### 0 Linked

### 0 Replies

## GitHub Comments

### 4 Comments

[Comment on GitHub](https://github.com/RehanSaeed/rehansaeed.github.io/issues/96)

[![RehanSaeed](https://avatars.githubusercontent.com/u/2270364?v=4)](https://github.com/RehanSaeed)

### [RehanSaeed](https://github.com/RehanSaeed)

Owner

12 May 2020

[![WBClark](https://camo.githubusercontent.com/8977443e480db2bb013b597e8c2253061c2b8aa76e337becf0a368ff168f0196/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f63323935303336636262396339646430623835306230626466653532393738393f733d393626643d6d6d26723d67)](https://camo.githubusercontent.com/8977443e480db2bb013b597e8c2253061c2b8aa76e337becf0a368ff168f0196/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f63323935303336636262396339646430623835306230626466653532393738393f733d393626643d6d6d26723d67) **WBClark** commented on **2018-06-12 22:17:07**

This is fun and I'm excited to see it all, but I'm still working on .net 4 applications and see that NWebsec just updated so that hashes can be used in CSP now. Are you dropping support for the boilerplate where it isn't a part of Boxed? Has it been updated to use the new NWebsec?

[![RehanSaeed](https://avatars.githubusercontent.com/u/2270364?v=4)](https://github.com/RehanSaeed)

### [RehanSaeed](https://github.com/RehanSaeed)

Owner

12 May 2020

[![Muhammad Rehan Saeed](https://camo.githubusercontent.com/8a07049df41b8a3839a3f4342f09ea8e6e7fa0065667687f04beca2d088a1dca/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f32623266393030653361633066353535316462646537323864336262343935343f733d393626643d6d6d26723d67)](https://camo.githubusercontent.com/8a07049df41b8a3839a3f4342f09ea8e6e7fa0065667687f04beca2d088a1dca/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f32623266393030653361633066353535316462646537323864336262343935343f733d393626643d6d6d26723d67) **[Muhammad Rehan Saeed](https://rehansaeed.com/)** commented on **2018-06-13 09:31:06**

> This is fun and I'm excited to see it all, but I'm still working on .net 4 applications and see that NWebsec just updated so that hashes can be used in CSP now. Are you dropping support for the boilerplate where it isn't a part of Boxed? Has it been updated to use the new NWebsec?

The MVC 5 project template is still available as a Boilerplate Visual Studio extension. I'm not going to take that down any time soon as people still use it. That said, I haven't made updates to it in some time.

Right now, with .NET Boxed, I have a fully featured API and GraphQL project template that I intend to improve in the near term. I intend to make another website template but choosing a web framework is a hard choice but I'll probably end up picking Blazor.

[![RehanSaeed](https://avatars.githubusercontent.com/u/2270364?v=4)](https://github.com/RehanSaeed)

### [RehanSaeed](https://github.com/RehanSaeed)

Owner

12 May 2020

[![WBClark](https://camo.githubusercontent.com/cf7c5bf7e512cb00c7226f91bf8e4fc9b836bb046c3c2f31f2e921b4adae83b4/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f38663866386239623262373938616663306363313938633365373939323238323f733d393626643d6d6d26723d67)](https://camo.githubusercontent.com/cf7c5bf7e512cb00c7226f91bf8e4fc9b836bb046c3c2f31f2e921b4adae83b4/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f38663866386239623262373938616663306363313938633365373939323238323f733d393626643d6d6d26723d67) **WBClark** commented on **2018-06-13 18:14:38**

We fully intend to migrate to Core and the boilerplate has had a big part in our meeting our security targets while learning .net and the galaxy of other things associated with it. We are currently finalizing a site that will sit on a public server and I would like to use hashes for CSP for that project, but long term I can see us struggling without something like the MVC boilerplate to help. Thank you for your excellent work in that.

[![RehanSaeed](https://avatars.githubusercontent.com/u/2270364?v=4)](https://github.com/RehanSaeed)

### [RehanSaeed](https://github.com/RehanSaeed)

Owner

12 May 2020

[![Muhammad Rehan Saeed](https://camo.githubusercontent.com/8a07049df41b8a3839a3f4342f09ea8e6e7fa0065667687f04beca2d088a1dca/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f32623266393030653361633066353535316462646537323864336262343935343f733d393626643d6d6d26723d67)](https://camo.githubusercontent.com/8a07049df41b8a3839a3f4342f09ea8e6e7fa0065667687f04beca2d088a1dca/68747470733a2f2f7777772e67726176617461722e636f6d2f6176617461722f32623266393030653361633066353535316462646537323864336262343935343f733d393626643d6d6d26723d67) **[Muhammad Rehan Saeed](https://rehansaeed.com/)** commented on **2018-06-24 13:23:57**

> We fully intend to migrate to Core and the boilerplate has had a big part in our meeting our security targets while learning .net and the galaxy of other things associated with it. We are currently finalizing a site that will sit on a public server and I would like to use hashes for CSP for that project, but long term I can see us struggling without something like the MVC boilerplate to help. Thank you for your excellent work in that.

Good to hear that my code has been of some help.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://rehansaeed.com/#website","@type":"WebSite","description":"Software Developer at Microsoft, YouTuber, Open Source Contributor and Blogger","inLanguage":"en-GB","name":"Muhammad Rehan Saeed","url":"https://rehansaeed.com/","author":{"@id":"https://rehansaeed.com/#identity"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://rehansaeed.com/?search={search_term_string}"},"query-input":"required name=search_term_string"}],"publisher":{"@id":"https://rehansaeed.com/#publisher"}},{"@id":"https://rehansaeed.com/net-boxed/#webpage","@type":"WebPage","dateModified":"2018-05-13T00:00:00+00:00","datePublished":"2018-05-13T00:00:00+00:00","description":".NET Boxed is a set of project templates with batteries included, providing the minimum amount of code required to get you going faster.","name":".NET Boxed","url":"https://rehansaeed.com/net-boxed/","breadcrumb":{"@id":"https://rehansaeed.com/net-boxed/#breadcrumb"},"isPartOf":{"@id":"https://rehansaeed.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://rehansaeed.com/net-boxed/"]}]},{"@id":"https://rehansaeed.com/#identity","@type":"Person","name":"Muhammad Rehan Saeed","url":"https://rehansaeed.com/about/","image":{"@id":"https://rehansaeed.com/#/schema/image/1"},"sameAs":["https://github.com/RehanSaeed","https://www.linkedin.com/in/muhammad-rehan-saeed","https://stackoverflow.com/users/1212017/muhammad-rehan-saeed","https://www.youtube.com/c/MuhammadRehanSaeed","https://www.twitch.tv/rehansaeeduk"]},{"@id":"https://rehansaeed.com/#publisher","@type":"Organization","logo":"https://rehansaeed.com/images/schema/Publisher-600x60.png","name":"Muhammad Rehan Saeed","url":"https://rehansaeed.com"},{"@id":"https://rehansaeed.com/net-boxed/#article","@type":"Article","dateModified":"2018-05-13T00:00:00+00:00","datePublished":"2018-05-13T00:00:00+00:00","description":".NET Boxed is a set of project templates with batteries included, providing the minimum amount of code required to get you going faster.","headline":".NET Boxed","inLanguage":"en-GB","url":"https://rehansaeed.com/net-boxed/","author":{"@id":"https://rehansaeed.com/#identity"},"image":[{"@type":"ImageObject","url":"https://rehansaeed.com/images/hero/Dotnet-Boxed-1366x768.png","caption":"Dotnet Boxed","width":"1366","height":"768"}],"isPartOf":{"@id":"https://rehansaeed.com/net-boxed/#webpage"},"keywords":[".NET Boxed",".NET Core","API","ASP.NET Core","ASP.NET Core Boilerplate","GraphQL","Swagger"],"mainEntityOfPage":{"@id":"https://rehansaeed.com/net-boxed/#webpage"},"publisher":{"@id":"https://rehansaeed.com/#publisher"}},{"@id":"https://rehansaeed.com/net-boxed/#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Blog","item":"https://rehansaeed.com/","position":1},{"@type":"ListItem","name":".NET Boxed","item":"https://rehansaeed.com/net-boxed/","position":2}]},{"@id":"https://rehansaeed.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://rehansaeed.com/images/author/Muhammad-Rehan-Saeed/Logo-512x512.png","inLanguage":"en-GB","url":"https://rehansaeed.com/images/author/Muhammad-Rehan-Saeed/Logo-512x512.png"}]}
```

## Sitemap

See the full [sitemap](https://rehansaeed.com/sitemap.md) for all pages.
