Category: .net core
-
.NET Testing Cheat Sheet 🧪
Quick Start Commands 1. Navigate to Test Directory 2. Start the Main Application (Required for E2E Tests) 3. Run All Tests Specific Test Commands Run Single Test Method…
-
.NET CLI Commands Reference/Cheat Sheet
Core Commands dotnet build Builds the project and its dependencies. dotnet run Builds and runs the application. Port Specifications Using –urls Parameter Using Environment Variables Using launchSettings.json Edit Properties/launchSettings.json: Watch Commands dotnet…
-
[Updated] Using EF migrations with multi project solutions.
When using ef migrations with an existing project, I found that that entity framework could not get a configuration, so therefore it could not get connection string etc.…
-
Resolving Common Issues with Code First Migrations in ASP.NET Core
I was working on a multi project solution and needed to do some code first migrations. It had been a while since I had done migrations and when…
-
Resolving EF Migration Errors with a Separate Database Project
As developers, we’ve all been there – stuck on a seemingly insurmountable error, with no clear solution in sight. Recently, I encountered an issue while trying to run…
-
[Solved] Image corruption when uploading files in .net core.
I had a real ‘Doh!’ moment today. I was having issues uploading images to an endpoint… after scratching my head and repeating the issue a few times, it…
-
HELP! Hosting .netcore https site inside docker container.
Im currently running a dev container for my .net core project. After following the directions found here: I can get my site working, so for if example I…
-

Multiple selections (multi cursor) in Visual Studio 2022 and VS Code
For a while I thought it was only available in vs code until I found this stackoverflow post! 🥳
-
How to add bearer token authentication to NSwag api.
NSwag is a game changer for working with Angular and Net Core, you write your endpoint code, and swashbuckler generates your swagger docs. You can find more info…