340,574 questions
0
votes
1
answer
43
views
.NET ReadFromJsonAsync<List<T>>() throws JsonException when API response contains wrapper object
I am developing a layered .NET project with API, BLL, DAL, and UI layers.
The UI layer calls the API using a generic API repository built with HttpClient.
My project structure is roughly:
Core
└─ ...
1
vote
0
answers
36
views
SDK "Microsoft.NET.Sdk.Android" not found
I am using VS 2026 Community Insiders. Due to the SDK "Microsoft.NET.Sdk.Android" not being found, I cannot compile Android apps.
This start with a simple .NET Android app. I added all of my ...
Advice
0
votes
2
replies
61
views
Thinking of switching from Windows to MacBook Pro for .NET dev in 2026
I’ve been a Windows-based .NET developer for almost 2 years, but I’m seriously considering switching to a MacBook Pro (M3 or M4 chip). Before I make such a big investment, I’d love to hear from people ...
1
vote
1
answer
87
views
Configuration.bind not setting values
I have the following section in my appsettings:
"ExternalApiSettings": [
{
"User": "Administrator",
"Key": "From user secrets",
...
0
votes
1
answer
120
views
Change Button.Text property to a custom value in C#
public Button()
{
this.Size = new Size(100, 100);
this.ForeColor = foreColor;
this.BackColor = BackColor;
this.Text = "Hello";
}
I created this constructor class to ...
0
votes
0
answers
27
views
ADFS WS-Federation ignores wreply on signout — redirects to default logout page instead of my app
I have an ASP.NET Web Forms application using OWIN + WS-Federation against an ADFS 2016/2019 server. After signing out, ADFS always shows its own "Déconnexion / Vous vous êtes déconnecté." ...
-1
votes
1
answer
36
views
How can I ensure that *.Designer.cs is generated from *.resx at compile time?
I've been following this tutorial for localisation in .NET: https://www.youtube.com/watch?v=EHoO9hG-Uzo&t=3s
Instead of relying on "magic strings" (Localizer["KeyName"]) as ...
1
vote
2
answers
180
views
What does .NET DateTime Ticks represent when Kind is Unspecified?
Take the following C# code:
DateTime.TryParse("2025-05-03T02:10:36", out DateTime dateTime);
Console.WriteLine(dateTime.Kind);
Console.WriteLine(dateTime.Ticks);
The value of Ticks is here ...
0
votes
0
answers
60
views
How to get JsonSerializer.Deserialize<> to not leave objects as JsonElement? [duplicate]
When I run System.Text.Json.JsonSerializer.Deserialize<Dictionary<string, object>> all values are converted to JsonElement, instead of the actual value. I expect numbers to be converted to ...
Best practices
1
vote
3
replies
112
views
.gitignore for .NET MAUI and WinForms projects
I'm new C# dev and already got some problems with binary files, long paths, sometimes corrupting files and also GitHub versioning.
Do you know some good practices with .gitignore and versioning that ...
Advice
0
votes
2
replies
60
views
Where does .NET stand in a world of "Prompt-to-App" builders?
I’m managing a team where the veteran devs are all-in on .NET, but the new hires won’t touch it. They’re addicted to the speed of "vibe coding" with v0 and Bolt. They basically prompt a Next....
Advice
0
votes
3
replies
65
views
Thermal Printing using react JS, dotnet
I am currently building a IMS and POS system, for the POS need to integrate thermal printing for billing, I need to know the current industrial standard of how it is implemented
Current Architecture
...
0
votes
1
answer
28
views
How to clean up after renaming a MAUI app project
Apologies in advance for the poor formatting; I'm not a frequent poster here. I renamed a .Net MAUI (XAML) project by right clicking the project name in Solution Explorer. I now have two errors in an ...
Advice
1
vote
10
replies
97
views
TimeSpan greater than "days" defined as ISO 8601 and subtracted/added to DateTime
I'm looking into a running timestamp based on a time span subtracted from a given datetime. The .NET documentation says TimeSpan can't go above days, but I need to be able to define a greater timespan....
Advice
0
votes
3
replies
57
views
How to ask Windows if a printer spools or not (in either .NET or Win32)?
I have a situation in which my .NET 10.0/WPF app needs to know if a printer sends its content to the print spooler or prints directly. Is there a way to query Windows for this, either in .NET/C# or in ...