Using ‘UseMvc’ to configure MVC is not supported while using Endpoint Routing. Issue Description .NET Core runtime gives below error, Using 'UseMvc' to configure MVC...
Continue ReadingResolved: TypeLoadException: Could not load type ‘Microsoft.AspNetCore.Mvc.MvcJsonOptions’ swagger error
TypeLoadException: Could not load type ‘Microsoft.AspNetCore.Mvc.MvcJsonOptions’ from assembly ‘Microsoft.AspNetCore.Mvc.Formatters.Json Issue Description While adding Swagger to .NET Core 3.0 gives below error, TypeLoadException: Could not load...
Continue ReadingResolved: It is not supported to publish an app without RuntimeIdentifier
It is not supported to publish an app to a single file without RuntimeIdentifier Issue Description: .NET Core build gives below error, It is not...
Continue ReadingUnit Test and Mock DBContext MongoDB in ASP.NET Core
Unit Testing and Mock MongoDB DbContext in ASP.NET Core – Part1 In our last article, we already learned the Implementation of a Repository pattern around...
Continue ReadingUnit Tests An Asynchronous Method In .NET Core Example
Using Moq to mock an Asynchronous Method in .NET Core Unit Tests Today in this article, we will learn how to Unit Tests An Asynchronous...
Continue Reading