ASP 5 Cheat Sheet
project.json
- Replaces web.config
- Define webroot directory
- Register dependencies
Nuget packages
- Register commands
- Define which frameworks are valid (.Net full, .Net Core)
- Exclude files & directories from project
wwwroot
- Web accessible files ~ think content dir in older mvc
- Images, scripts, stylesheets, etc.
- Easier to isolate the files you want to serve
config.json
- Replaces web.config for appsettings & connection strings
- Default option, you can also use xml, ini, or env vars
- Expected path: config.json for local dev, env vars for servers
bower.json
- Manages client side dependencies
- Like Nuget for javascript libs
gulpfile.js
- Define build and publish tasks
- Copy files, minify css & javascript, etc.
- Task Runner Explorer
Startup.cs
- Entry point for app
- Add “Middleware” to pipeline
- Dependency Injection
- Configure Routes
Here are the other posts in this series: