340,376 questions
Advice
0
votes
2
replies
25
views
.Net 6 .Net 10 Visual Studio
When creating or opening an ASP.NET Core MVC web project using .NET 6 and .NET 10, I encounter a frustrating error:
In Visual Studio Community, when I click to run, the following error appears:
Failed ...
0
votes
1
answer
54
views
Swashbuckle.AspNetCore 10.1.7: OpenApiSecuritySchemeReference works but responses like 401 show as “Undocumented” in Swagger UI
I'm using Swashbuckle.AspNetCore version 10.1.7 with the new OpenAPI setup in .NET.
My Swagger security configuration looks like this:
services.AddSwaggerGen(options =>
{
options....
0
votes
0
answers
76
views
Can I invoke Postgresql function on EF with named parameters?
I need to invoke a PostgreSQL function. The first parameter of the function can be not sent, that's why I need to use named parameters.
It's working with NpgsqlConnection and NpgsqlCommand - like this:...
0
votes
0
answers
112
views
Getting “Value of '-2147483648' is not valid for 'RowPosition'” in Visual Studio [closed]
I am running into a persistent and unusual issue while working with the WinForms designer in Visual Studio. Whenever I move or drag any control (such as a TextBox) on a form and then start debugging, ...
0
votes
0
answers
127
views
Launching an admin process from a non-admin process [closed]
I have to execute multiple processes with admin rights.
Until now, my program ask the password of the administrator account, and that works
But because security policies, I can't no more use ...
0
votes
0
answers
49
views
Protobuf and Dotnet: protoc version is opaque but it can breaks the runtime
Protobuf documentation is kind of clear about the compatibility between the gen code and the runtime. According to this https://protobuf.dev/support/cross-version-runtime-guarantee/, you can use a ...
Advice
7
votes
12
replies
404
views
.NET development
I am looking for a full stack to get started with software development. I have heard about a few technologies and need to know if it is worth getting started with .NET.
Now, it does not heavily depend ...
Tooling
1
vote
0
replies
58
views
What is the best practice to implement authentication for a web app built with nuxt frontend, .NET backend, and MySQL database?
Currently in the architecture building phase of developing a web application. As the question states, front end will be built with Nuxt and hosted on vercel. Images, generated pdfs (part of the app's ...
-1
votes
0
answers
85
views
Managing interdependent projects in solution
Consider the following scenario:
I have a local NuGet store
Multiple libraries, e.g. generally used tooling are published as NuGet packages
Many packages depend on said generally used tooling and ...
Advice
0
votes
3
replies
76
views
Why is the reference returned from ImmutableArray<T>.Builder.ItemRef(Int32) readonly?
The returned value from ImmutableArray<T>.Builder.ItemRef(Int32) is ref readonly, instead of ref. Why?
It can't be because the backing array might be replaced during a resize operation, because ...
Best practices
0
votes
4
replies
162
views
How to reliably self-execute/clone a .NET console app?
I was writing a cross-platform (Windows/Linux/macOS) utility tool in .NET (using CliFx for command-line parsing). The application needs to spawn a child process of itself to act as a worker/watchdog.
...
Best practices
0
votes
1
replies
76
views
External API response saving and reusing
As i am using the external api where the response from that external api is being used for the validation of the endpoints. In this i have first used the approach of IMemoryCache and saved the ...
Best practices
0
votes
2
replies
93
views
Separate my mainview into independent parts
I'm working on a logging tool written in C# 14 and AvaloniaUI as graphical user interface using the MVVM architecture. The attached picture shows the current state of my tool. As you can see I already ...
Advice
0
votes
2
replies
133
views
Working with a .NET DLL from C++, that DLL loading two different versions of the same DLL, why is that a problem?
A colleague has created a .NET8 DLL, which refers to Microsoft.Extensions.Logging.Abstractions.dll.
Apparently, when you load such a DLL and you start using functions from the export list, while these ...
4
votes
1
answer
134
views
How to add timestamp (date) to BenchmarkDotNet exported HTML or CSV file names?
I am using BenchmarkDotNet to run performance benchmarks in a .NET application, and I am exporting the results to HTML and CSV using the built-in exporters.
Here is part of my configuration:
...
