Category ".net-6.0"

Cannot convert lambda expression to type 'IValueResolver<Entity, MyDto, object>' because it is not a delegate type

I am trying to define this simple mapping in my profile CreateMap<CompanyClient, MyDto>() .ForMember( dto => dto.PaymentTerms, opt => opt.M

Host ASP (.NET 6) in a Windows Service

I am currently hosting an ASP.NET (.NET 5) application in a Windows Service using WebHost and WebHostBuilder. .NET 6 introduced WebApplication and WebApplicatio

Why does "dotnet ef migrations add" start my application?

I've created a new project using .NET 6 and EF Core 6 but when I try to create a migration using dotnet ef migrations add, the CLI begins running the applicatio

How to run method once at app launch .NET 6 MVC?

How to run a method only once at app launch in .NET 6 MVC application. This method will use configured services to create default users/roles, seed some configu

Azure Functions how to get a new local.settings.json?

What I have been doing for some time now when using Azure Functions is to setup a local.settings.json file with where I configure settings like, ConnectionStrin

How to deploy Blazor WebAssembly as static site in GitLab Pages

I can't find any guide on how to deploy a Blazor web assembly app to GitLab Pages as a static site. Has anyone managed to do so for .NET 6? I have created a sam

How to exclude a .NET 6 Minimal API from code coverage?

I maintain a class library which contains several reference implementations to demonstrate how the library should be used. I have reference implementations for

Areas do not work when migrating an Angular app to NET 6

I have an .NET Core 5 with Angular app and I have my controllers grouped in areas. I made the app using NET Core 1 and have successfully migrated it up to 5 wit

Problem in Azure DevOps pipeline restoring AutoMapper NuGet package in .net 6

I get the following error message when my pipeline is being run: Package AutoMapper.Extensions.Microsoft.DependencyInjection 8.1.1 is not compatible with net60

Visual Studio 2019 Not Showing .NET 6 Framework

I've been struggling to change an asp.net core web api project's target framework to .NET 6 which was started using target framework .net5. I've already tried a