Questions tagged [.net-8.0]
Use this tag for questions specifically related to version 8.0 of the .NET platform. Use only If your question is version specific. For questions about .NET 5+ / .NET Core generally, use the [.net-core] tag.
.net-8.0
1,704
questions
0
votes
1
answer
15
views
ASP.NET Core 8 : singleton pattern with HttpContextAccessor does not work together
I'm developing an ASP.NET Core 8 application and using the singleton pattern for session management, but when I want to read the values, it displays null values!
Here you can see the code:
...
0
votes
1
answer
13
views
Rotate icon in MudBlazor
I am using blazor .net 8 with MudBlazor for UI. I have Button with Start/End icon and i want to Rotate that icon How Can i?
<MudButton Color="Color.Info" OnClick="@(e => { Share(&...
0
votes
0
answers
8
views
Terminal.gui : Pb initializing CursesDriver on Ubuntu
I build a small Console App on .NET8.0 with Terminal.gui 1.17.1. It works well on Windows 11.
I publish it using linux-x64 as target runtime, in an autonomous unique file.
In copy files on my local ...
0
votes
0
answers
16
views
How can I change default AspNetUserLogins table to MyUserLogins table in Blazor web app on .NET 8, Login with individual account?
I created a Blazor web app with authentication type = Individual Account. It automatically maps to the default ASP.NET tables. Can I change the name of these tables to make it maps with my tables in ...
0
votes
1
answer
27
views
Update a .NET Framework app to .NET Core. It's a VB.NET Windows service
I have a somewhat old .NET 4.7 Windows service written in VB.NET.
I would like to bring this up to .NET Core 8.0, but the upgrade wizard doesn't seem to want to deal with a lot of the work and I can't ...
0
votes
0
answers
23
views
Setting ASPNETCORE_ENVIRONMENT variable from launchSettings.json of DockerCompose project only
Problem Statement
I am currently working on an ASP.NET Core 8.0 Web API backend solution with multiple projects that runs using docker-compose in Visual Studio 2022. I have defined several profiles in ...
-1
votes
0
answers
15
views
Can i run .Net 8 runtime on CentOS?
I want to deploy a .net core app with .net 8 on a linux VPS that is running CentOS V7.9. I can't find any way to install .net 8 runtime.
Is there any other way of hosting a .net 8 app on that kind of ...
0
votes
0
answers
22
views
How to create custom parameter attribute FromActionArguments in C# like FromQuery?
I would like to create attribute that will tell that parameter should be filled from action arguments, not from query, route, header or body.
ASP.NET is already binding it correctly from ...
-1
votes
2
answers
78
views
Error when try to map entities in Dapper(Multi-map error: splitOn column)
Error:
System.ArgumentException: Multi-map error: splitOn column 'Id' was not found - please ensure your splitOn parameter is set and in the correct order (Parameter 'splitOn').
It happens when i use ...
-1
votes
0
answers
54
views
How to Target Both .NET Framework 4.8 and .NET 8.0 in a Single Project?
I have a project currently targeting .NET Framework 4.8, and I want to extend its compatibility to also target .NET 8.0. Is there a way to set up my project so that it can be built and run on both ...
0
votes
1
answer
19
views
How to add ConsistencyLevel Eventual to GraphAPI call in NET 8
I am trying to retrieve user information from GraphAPI, in a Blazor page with .NET 8:
@inject GraphServiceClient GSC
@inject MicrosoftIdentityConsentAndConditionalAccessHandler ConsentHandler
// ...
...
0
votes
1
answer
35
views
Prevent variables of same type replicate values
i have this code, that's replicating without any reason, my issue is when I try to change values in 'NewRow' its automatically gets copied to 'CurRow', I want to create copies of 'CurRow' and each row ...
0
votes
0
answers
20
views
Define JS function in collocated js file and pass that function to be called from different JS file
I am trying to find best way to call some JS function that I declared from external JS file by its name. I am able to make it work using the following approach:
# define function at window level in ...
0
votes
0
answers
33
views
UseStatusCodePagesWithReExecute with Blazor not working
I want to use a custom 404 page and I want to return a 404 status code to the client. One simple way tot accomplish this would be to use
app.UseStatusCodePagesWithReExecute("/404");
So, ...
1
vote
1
answer
45
views
Call OnBackButtonPressed() in ComponentBase class in Maui.Net
I am building a mobile app (Android and iOS) using .NET MAUI Blazor Hybrid with .NET 8. For the frontend UI, I am using MudBlazor, and I have implemented MudDialog in several places. My issue is that ...