Category ".net-6.0"

The framework 'Microsoft.WindowsDesktop.App', version '6.0.0' (x64) was not found in docker image

I have created a webapi project in dot net 6.0, which internally uses some winform code. I want to create a docker image however it is throwing the following er

.Net standard project docker COPY file not found visual studio

I have a .Net standard project called PrivateSales with a Dockerfile that looks like this #See https://aka.ms/containerfastmode to understand how Visual Stu

Update to .NET Core 6.0 in JetBrains Rider

A teammate recently updated our code base to use .NET Core 6.0 and I'm trying to build the project in JetBrains Rider. I went to File > Preferences > Envi

How to create a Logger in .NET 6 Program.cs

I have a Data.Migrations project, which will run any Entity Framework Migrations to update the database model. Recently I have updated this project to .NET 6 an

Identity MVC Project in .NET 5 upgraded to .NET 6 cannot find Views when deployed to AKS Cluster (Linux)

I am working on upgrading my .NET Identity project from .NET 5 to .NET 6. Currently, everything works flawlessly while the project is in .NET 5 but as soon as I

.net 6 core mvc return view() static file path gets the view path error : net::ERR_ABORTED 404

There is a problem with .net 6 core mvc when invoking a method of controller by (asp-controller ="test" asp-action="GetTest") static files such as js, css, medi

How is Windows Authentication Wired Up?

I'm in the process of creating an ASPNET Core 6 MVC app in VS 2022 which will eventually be deployed in a Docker container. Windows Authentication will be used

.NET 6 console app using NuGet library written for .NET 5 runs fine under Windows but crashes on Mac M1 with System.BadImageFormatException

Under Windows I have used the SaxonCS library (available on NuGet https://www.nuget.org/packages/SaxonCS/ that is written against .NET 5 successfully in both .N

Can't cast database type character to Guid

I updated my solution from .Net 3.1 to .Net 6. Also updated the Npgsql nuget package from 5.0.10 to 6.0.4 as part of this upgrade. Since then, I am receiving an

Custom authorization issue

I'm testing some custom authorization without the default Entity Framework stuff. I have created an "ASP.NET Core Web App (Model-View-Controller)" project using

In Visual Studio 2022, publish to IIS returns a build error, but publish to Folder is ok (and it was all working fine before)

I've updated Visual Studio 2022 to 17.1.0 recently and I now have this weird error, but not on every project (on only one up to now). I've tested other project

Automapper - Map setup from collection<double> failing

I have a Automapper setup that was working on the v10 version but since i updated it to the latest v11, it wont work anymore. I have no clue what could be the i

Convert Json to List of Object

I am calling an API using: HttpClient client = new HttpClient(); HttpResponseMessage response = await client.GetAsync(path); String content = await response.C

Bind custom attribute value to route constraint

How do I bind a custom attribute value to a route? What I want: [ApiController] [CustomAttribute("value")] [Route("{customAttributeValue}/[controller")] public

Can C#(.NET 6) call managed/unmanaged C++ dll?

I'm attempting to call a c++ DLL(WinSDK: 10.0.18362.0, Platform Toolset: VS 2017 v141) from C#(the target framework is .NET 6.0) on ARM, and I compiled them for

.NET 6 obfuscation

I'm trying to obfuscate an .exe file obtained after compiling my .NET 6 project with the "Produce a single file" option, the problem is that no obfuscator works

how to migrate global.asax event 'Application_Start' to program.cs on net.6?

I try to migrate an old projet with a console app and a webservice ( both on .net framework 4.6) to a .net 6 console app (I want to suppress the ws and just hav

Entity framework core multi tenant : auto increment column based in another column value

Using entity framework core 6 with sample class public class Sample { [Key] public long Id { get; set; } public long TenantId { get; set; } public long

Visual studio 2022 .net 6 is not supporting reportviewer?

In Visual Studio 2022 I can't get any report viewer, and I am using .NET6 framework. Is there any way to still somehow use it?

Blazor app published on server get HTTP Error 500.30 - ASP.NET Core app failed to start

I have a blazor application (Framework .NET6) published on my hosted server. The application is configured as a website app called bis on IIS The project is pu