-
Configure VSCode debugging to use ASP.NET Core MVC ‘watch’ auto-recompile of C# classes and cshtml views
So there’s VSCode (aka. Visual Studio Code) and there’s Visual Studio 2019. If you’re developing an ASP.NET Core MVC application using Visual Studio 2019, when you’re running the application in debug mode, if you modify one of your cshtml views, your application that’s running in the browser automatically picks up the change. Without having to…
-
Deploy Entity Framework Core Migrations from a DLL
[Updated 4/27/2018 — Added an EF Core 2 version of this script in a new blog post.] [Updated 3/29/2017 — Added a bash version of this script for deploying EF Core Migrations from Linux.] Entity Framework Migrations let you deploy incremental updates to a target database. With Entity Framework Core (EF Core) this is done from…
-
Script: Create new ASP.NET Core Project with Class Library & Tests
Building on my post about how to do some common Solution and Project tasks using the dotnet command, here’s a sample script to create a complete solution that can be used from Visual Studio 2017 or Visual Studio Code. I wanted to be able to create a complete solution and project structure all from the…
-
Cheat Sheet: Use dotnet.exe to Create New Solutions, Projects, & References
I’ve been playing with .NET Core a lot lately and I’ve been trying to stick to the command line and Visual Studio Code as much as possible so that I can really learn what’s going on so I can (eventually) do cross-platform devops-y things. This means that I’m spending a lot of time with dotnet.exe…which…