Category ".net-6.0"

Could not load file or assembly 'NLog.Web.AspNetCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'

I'm upgrading my solution from .NET 5 to .NET 6 and getting the error at runtime Unhandled exception. System.IO.FileNotFoundException: Could not load file or a

Is it possible to debug a C# console application using git bash?

I am using Visual Studio Community 2022, and I was wondering if you could use another CLI to run/debug a c# console application. (I can't use cmd.exe or powersh

.NET 6 System.IO.FileNotFoundException: Could not load file or assembly System.Linq, Version=6.0.0.0

I am trying to migrate a project from .NET Core 3.1 to .NET 6. I have followed the official migration guide from Microsoft. During build in startup.Configure I

.NET 5 to .NET 6 migration - How to fix appsettings.json data being read as NULL after migration? Dependency injection not working

In .NET 5 we have some settings that are read from the appsettings.json file. Now that we have migrated the code from .NET 5 to .NET 6 the model we created to h

Dotnet Isolated Azure Function w/ .Net 6 on a Linux consumption plan complaining about 6.0 AspNetCore.App Runtime not being available

I need some help identifying why an Azure Function deployed to a Linux consumption plan is unable to start and complaining about the AspNetCore.App runtime not

.Net JsonSerializer does not serialize tuple's values

JSON serializer returns an empty JSON object. using System.Text.Json; (int, int) tuple1 = (1, 2); var token = JsonSerializer.Serialize(tuple1); // return empty

Could not load file or assembly 'Microsoft.Data.SqlClient' in .NET 6

I have developed a WPF app on .NET 5 (CRUD operations with Entity Framework Core). MSI packages are built with Wix toolset. Up to here everything works. I am cu

Open type font collections are causing errors with PdfPrintingCore "Font has no usable platform or encoding ID. It cannot be used with PDFEdit."

When printing any text in font type Cambria (or another .ttc font type) on Windows I get the following error message: Font has no usable platform or encoding ID

How can I generate .csproj Project file only in C# Console App?

I already have a Program.cs in the folder/directory and no other files. When I do dotnet new console, it won't let me create it unless I use --force to overwrit

How can I generate .csproj Project file only in C# Console App?

I already have a Program.cs in the folder/directory and no other files. When I do dotnet new console, it won't let me create it unless I use --force to overwrit

.NET 6.0 Blazor Server app: WebSocket connection to 'ws://localhost:60908/BlazorApp1/' failed

When I create a new, clean Blazor .NET 6.0 app and start it (using Visual Studio 2022), I see the following error in the browser console: WebSocket connection t

AutoMapper 11. Missing API replacements

28.2 ForAllMaps, ForAllPropertyMaps, Advanced and other “missing” APIs Some APIs were hidden for normal usage. To light them up, you need to add

.NET Core: Event handling at calling a third party 32-bit dll from a 64-bit c#

I'm going to migrate a .NET Framework 4.* application to .NET 6. Main application is compiled as 64bit and I need to use a 32bit (.NET 6) dll hosted as out-of-p

Visual Studio 2019 & 2022 (Preview) not finding .NET 6 SDK on launch - mac osx

I'm trying to run a C# .NET Core project locally on Mac and encountering some issues both on Visual Studio 2019 and 2022. Firstly, every time on loading up the

Breakpoints is not hitting while debugging a .NET MAUI android application

I have been working on a MAUI android application and when debugging, the breakpoints is not hitting and the application enter in a break state. But for windows

Can I programmatically attach a running .NET 6 process to a running instance of Visual Studio debugger?

I'm debugging an IPC logic where one .NET 6 processes is launching another, and I can't get to debug both within the same Visual Studio 2022 instance. When the

SettingsPropertyValue in ConfigurationManager won't serialize array of strings

I'm transferring an application from .Net Framework 4.6.2 to .NET 6 and I'm getting some problems with the ConfigurationManger where it is not able to serialize

EF Core - Unable to resolve service for type DbContext while attempting to activate ApplicationContext

I am attempting to scaffold CRUD razor pages using entity framework but the code generator throws the following error: There was an error running the selected

NET6 Linux-x64 Self-Contained Single-File Unusable

I've a project that runs perfectly as "Framework-Dependent Single-File" on Linux-x64, and also as a "Self-Contained" application. But when I compile as "Self-Co

Identity Server 4 connect/token works when self hosted but not when deployed

I built an .NET Core 3.1 IdentityServer4 to protect some API endpoints: public static class Config { public static IConfiguration Configuration { get; }