ASP.NET Core
One Hour Makeover
Jon Galloway
Microsoft
@jongalloway
Notes and
Links
https://aka.ms/aspnetcore-makeover
What we’ll cover
Intro (goals/non-goals/what you'll learn)
Pick The Right Starting Template
Source Control and Solution Structure
Front End
Maintainability
Performance
SEO
Making a Custom Template
Pick the Right Starting Template
SPA Templates
Web App
Web API
Blank Solution
Starting Templates
Source Control and Solution Structure
.gitignore
.editorconfig
global.json
Project.Web
Project.Tests
LibMan
(or not?)
Bootstrap
Icon Font
Front End
{
"version": "1.0",
"defaultProvider": "cdnjs",
"libraries": [
{
"library": "jquery@3.3.1",
"files": [
"jquery.min.js",
"jquery.js",
"jquery.min.map"
],
"destination": "wwwroot/lib/jquery/dist"
},
{
"provider": "unpkg",
"library": "bootstrap@4.1.3",
"destination": "wwwroot/lib/bootstrap/",
"files": [
"dist/css/bootstrap.css",
"dist/css/bootstrap-grid.css",
"dist/css/bootstrap-reboot.css",
"dist/js/bootstrap.js"
]
}
]
}
Functional Tests
Health Checks
Maintainability
Know the checklist
Response Compression
Response Caching
MiniProfiler
Performance
SEO
Dynamic sitemap.xml
Lowercase URLs
Custom Templates
Make Your Own!
> dotnet new -i C:UsersJonsourcereposOneHourMakeover
> dotnet new aspnetonehour
{
"$schema":
"http://json.schemastore.org/template",
"author": "Jon Galloway",
"classifications": [ "ASP.NET Core", "Solution"
],
"identity":
"JonGalloway.AspNetCoreSolutionTemplateTemplate
.CSharp",
"name": "ASP.NET Core One Hour",
"shortName": "aspnetonehour",
"sourceName": "OneHour"
}
https://docs.microsoft.com/en-us/dotnet/core/tools/custom-templates
https://aka.ms/aspnetcore-makeover
Notes and Links

Techorama 2019 - ASP.NET Core One Hour Makeover