Questions tagged [.net-8.0]

For questions related to Microsoft's .NET application development framework that are specific to version 8.0+ of the framework. Use only If your question are version-specific. For generic .Net framework related questions use .Net tag. Keep it in mind that .Net 8 is still under pre-release/preview.

29 questions
0
votes
0 answers

How to seed Identity in .NET Core 8 CleanArchitecture

I am learning Clean Architecture. FirstLy I create a MVC Project. Then I Create Some Class Library as you can See in the pictures> Then I move identity to my Infrastructure.Identity project. Separate IdentityDBContext (In Infastructure.Identity…
0
votes
1 answer

Cannot get SQL Server 2022 to work with SSL certificate

I just upgraded my C# project from .NET 6 to .NET 8. I started getting Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider:…
0
votes
1 answer

Why can't I map an array of child items to JSON?

My code (.NET 8.0 preview 6) to allow ToJson() in SQLite: using Microsoft.EntityFrameworkCore; var ctx = new TestContext(); ctx.Database.EnsureCreated(); ctx.Items.ToArray(); class TestContext : DbContext { public DbSet Items { get;…
maloo
  • 685
  • 1
  • 6
  • 16
0
votes
0 answers

iTextSharp: Any support for .Net 6?

I'm using iTextSharp in the .Net 6 application. At the time of build the application getting the error, Package 'iTextSharp 5.5.13.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7,…
Anil Singh
  • 4,173
  • 4
  • 41
  • 47
0
votes
2 answers

Binding dynamic Object in MAUI

I'm currently working on a MAUI Project and i'm trying to create a dynamicObject and bind it to a label ( final goal is not a label but it's easier to test on a label) But nothing is displayed I tried with .net7 and .net 8 My dynamic object look…
Nesta
  • 3
  • 3
0
votes
1 answer

case insensitive parameter binding in minimal api and swagger dokumentation

I have a c# .net 8 minimal api witch takes as a parameter an enum: app.MapGet("/{id}/attachments/{category}/{attachmentId}", async ( Guid id, AttachmentCategory category, string attachmentId) => { …
Jester
  • 3,069
  • 5
  • 30
  • 44
0
votes
1 answer

How can I return Json in .NET 8?

In my ProductController, I have this code to return Json: [HttpGet] public IActionResult GetAllProduct() { List objProductList = _unitOfWork.ProductRepository .GetAll(includeProperties:…
Nguyen Tuan Anh
  • 29
  • 1
  • 1
  • 7
0
votes
0 answers

dotNet watcher with -- project parameter and running an application stopped working in .NET 8

In .NET 6, it is possible to use the dotnet cli this way: dotnet watch --project DotNetWatch.msbuild MyWebApplication.dll where DotNetWatch.msbuild contains an ItemGroup with the Watch files, for example:
0
votes
0 answers

Maui Custom component crashes only in iOS Release

Currently I have upgraded a Xamarin app to a MAUI .net8 app and it seems to work properly enough in Debug on both iOS and android. Android release works as well but when I try to run iOS in release it crashes with this…
0
votes
1 answer

Trouble upgrading IEndpointRouteBuilder method from .Net6 to .Net8

The following method defines my endpoints and worked fine in .Net 6. I am upgrading this app now to .Net 8 before I get to far along since that will be standard in a few months. public static void DefineEndpoints(IEndpointRouteBuilder app) { …
dinotom
  • 4,990
  • 16
  • 71
  • 139
0
votes
0 answers

HTTP_PORTS when running ASP.NET 8 container in AKS

In the logs of a ASP.NET 8 container I find this entry [22:38:50 WRN] Overriding HTTP_PORTS '8080' and HTTPS_PORTS ''. Binding to values defined by URLS instead 'http://+:80'. # {"EventId": {"Id": 15}, "SourceContext":…
Franco Tiveron
  • 2,364
  • 18
  • 34
0
votes
4 answers

What Exactly Does SwaggerGen() Method Do?

I Recently Start working with Asp.net Web API and in the Present of Methods in Program.cs. What does AddSwaggerGen() do? var builder = WebApplication.CreateBuilder(args); builder.Services.AddSwaggerGen();
-1
votes
1 answer

"Missing" Microsoft.AspNetCore.App.Runtime.win-arm & Microsoft.NetCore.App.Runtime.win-arm: Can't Build

In the process of upgrading a solution to .net 8 I've run into a build error I can't get around. In short, I get two errors about missing Microsoft.*..win-arm Nuget Packages being unavailable to restore or install/find. error NU1102: Unable to find…
David Gerding
  • 232
  • 3
  • 10
-3
votes
0 answers

Need help for an error in C# / ASP.NET Core 8 MVC vs2022preview

Everything was fine, I was following along with a course when all of a sudden this error appears, I revert the changes to when the project ran fine but the error still persisted. I haven't changed anything in regards to .NET versions the error was…
1
2