tagged [.net-5]

Why does an interface's default implementation get called when two classes are in the inheritance chain, and the class in the middle is empty

Why does an interface's default implementation get called when two classes are in the inheritance chain, and the class in the middle is empty ## Summary I have found that inserting a class between an ...

29 Jun at 21:10

How to solve the Error MSB3644 in Visual Studio 2019 com. edition?

How to solve the Error MSB3644 in Visual Studio 2019 com. edition? I have a dev machine with - - - I install net plataform sdk 5.0 to run Fluid UI Desktop apps (using C#). When i create and run a blan...

13 Nov at 18:39

How do I define the SignedOut page in Microsoft.Identity.Web?

How do I define the SignedOut page in Microsoft.Identity.Web? I'm successfully signing in and out using Azure AD B2C in a Blazor Server app, but it's not clear to me the proper way to define the Signe...

Why do Entity Framework Core migrations require .NET Core 2.x?

Why do Entity Framework Core migrations require .NET Core 2.x? In my .NET5.0 project the PostgreSQL Nuget package is installed (`Npgsql.EntityFrameworkCore.PostgrSQL (5.0.2)`) and its dependency of EF...

13 Mar at 19:24

Equivalent to UserSettings / ApplicationSettings in WPF for newer .NET versions

Equivalent to UserSettings / ApplicationSettings in WPF for newer .NET versions What is the prefered way for for WPF applications with [.net-5](/questions/tagged/.net-5) , [.net-6.0](/questions/tagged...

27 Feb at 06:47

SetBasePath not present in ConfigurationBuilder under .NET Core 5

SetBasePath not present in ConfigurationBuilder under .NET Core 5 According to the docs for .NET Core 5, there's a method [SetBasePath](https://learn.microsoft.com/en-gb/dotnet/api/microsoft.extension...

Azure Function Middleware: How to return a custom HTTP response?

Azure Function Middleware: How to return a custom HTTP response? I am exploring Azure Function running on `.net 5` and I found out about the new [middleware capabilities](https://learn.microsoft.com/e...

System.Text.Json Field Serialization in .NET 5 not shown in Swashbuckle API Definition

System.Text.Json Field Serialization in .NET 5 not shown in Swashbuckle API Definition # Problem I'm using ASP.NET Core with .NET 5 and am using the `System.Text.Json` serializer to serialize types co...

.Net 5 - WPF, unit test woes

.Net 5 - WPF, unit test woes I'm having some issues while playing around with .Net 5, so I'm hoping someone could shed some light on things. Having worked on a large enterprise .Net Framework solution...

12 Nov at 13:3

.NET Core equivalent to Thread.Abort

.NET Core equivalent to Thread.Abort ## Background I have a `Service` abstraction. Each service has it own `WorkItem`. WorkItem able to start with some data. The service is limiting the excution time ...

C# "anyString".Contains('\0', StringComparison.InvariantCulture) returns true in .NET5 but false in older versions

C# "anyString".Contains('\0', StringComparison.InvariantCulture) returns true in .NET5 but false in older versions I encountered an incompatible problem while I was trying to upgrade my projects from ...

6 Feb at 15:44

Failing to perform Cookie Authentication: SignInAsync and AuthenticateAsync not successful

Failing to perform Cookie Authentication: SignInAsync and AuthenticateAsync not successful I am trying to build a very simple playground server for me to study some ASP.NET Core authentication/authori...

12 Jan at 18:54

Cannot find .NET 5.0 Console App project template in Visual Studio 2019

Cannot find .NET 5.0 Console App project template in Visual Studio 2019 I'm currently trying to create a C# .NET 5.0 Console Application in Visual Studio 2019, and the option does not appear under pro...

How to use default serialization in a custom System.Text.Json JsonConverter?

How to use default serialization in a custom System.Text.Json JsonConverter? I am writing a [custom System.Text.Json.JsonConverter](https://learn.microsoft.com/en-us/dotnet/standard/serialization/syst...

Building .NET 5.0 project Azure DevOps pipeline

Building .NET 5.0 project Azure DevOps pipeline I'm trying to build a project in .NET 5.0 using Azure DevOps pipeline Build and I'm received this error [](https://i.stack.imgur.com/4i8ux.png) ``` 2020...

Ping Tasks will not complete

Ping Tasks will not complete I am working on a "heartbeat" application that pings hundreds of IP addresses every minute via a loop. The IP addresses are stored in a list of a class `Machines`. I have ...

30 Nov at 13:11