Skip to main content
Filter by
Sorted by
Tagged with
12 votes
4 answers
3k views

I’m trying to install the Entity Framework Core CLI tools globally using the .NET CLI command: dotnet tool install --global dotnet-ef However, the installation fails with the following error message: ...
tutte2k's user avatar
  • 301
4 votes
1 answer
92 views

I'm attempting to deserialize an XML response from an API. The data is as follows (I have only included a small chunk for the sake of a small post): <ns1:alerts xmlns:ns1="http://gov.fema....
alexjusti's user avatar
Best practices
3 votes
3 replies
87 views

I have the following application architecture: FrontEnd → ApiServer 1 → ApiServer 2 → Database So, the frontend calls a web server, which calls multiple API which make query on database. What is the ...
Massimo Lavermicocca's user avatar
2 votes
2 answers
130 views

I am currently creating a custom .NET router. It is working as it should, but one thing that bothers me is that I don't get the same level of syntax highlight in rider as I get with other more ...
munHunger's user avatar
  • 3,117
2 votes
1 answer
87 views

I am creating my first template for a .NET solution. For the most part it works, but I have a string "MyService" at some places in the Program.cs that I would like to replace with "...
Myrkjartan's user avatar
2 votes
1 answer
146 views

I am trying to use .NET reflection to emit a class and some interfaces which the class implements. However, I cannot seem to correctly implement the interfaces that are generic, as that results in ...
pmikkelsen's user avatar
2 votes
0 answers
41 views

We’re encountering an issue with WKWebView on the latest iOS 26 beta. When loading a PDF URL, the background behind the PDF now appears as dark gray, instead of the expected white. Environment: Device/...
Vinu PR's user avatar
  • 263
2 votes
1 answer
83 views

I've been stress testing my .NET application that uses PostgreSQL to find memory leaks. The app is very stable memory-wise — memory usage only depends on the number of concurrent connections. However, ...
pkrzysiek's user avatar
2 votes
0 answers
38 views

If I run free Dotfuscator shipped with VS 20222 with Check flags enabled I get this error message: Could not find a runtime-compatible version of the validity period checker library for all input ...
ezio g.'s user avatar
  • 41
Advice
1 vote
4 replies
141 views

I have some C# code (in a .NET Standard 2.0 library) that looks like the following: private object MySynchronousOp(object param, object cmnParam) { //Do stuff... return theObject; } private ...
DAG's user avatar
  • 315
Best practices
1 vote
5 replies
82 views

In an MVVM architecture, models should be kept free of UI-related logic. They represent pure data that is retrieved from memory via a service. I see a challenge when the user interface needs to ...
jjb's user avatar
  • 37
1 vote
1 answer
69 views

I have a page Product.aspx that has a master page Main.master, both pages are in the root of the project (they don't belong to any folder). The problem is that the tilde path only works for the Main....
franko_camron's user avatar
1 vote
2 answers
59 views

I want to format a number with a given culture and a given currency ISO Code. I was not aware that besides the position and number format also the currency symbol changes based on culture. That's what ...
Matthias's user avatar
  • 1,458
1 vote
0 answers
22 views

I've been trying to setup roslyn.nvim with rzls.nvim on my neovim for a while to work with .NET, C# and Blazor. But I've been facing some frustrating problems, I'm using WSL Ubuntu 24.04, a neovim ...
Carlos Saraiva's user avatar
1 vote
1 answer
45 views

I want to print data on a label. I created a ZPL template file and in my application i read that template file, look up a specific string, replace that string with data from my application and then ...
Nico Sz's user avatar
  • 133
1 vote
0 answers
48 views

The test with coverage runs perfectly well locally: C:\xyz\DevOps\xyz.DependencyInjection [master ≡]> dotnet test -c:Release --no-build -f net9.0 --filter "FullyQualifiedName~Tests....
mark's user avatar
  • 63.6k
Best practices
1 vote
3 replies
65 views

I have a question about sharing contracts between services using a message broker (more specifically, Azure Service Bus). I searched for it in various articles and asked a chatbot, but I didn't get a ...
pietro's user avatar
  • 221
1 vote
0 answers
68 views

I am creating a lib to listen to server notifications (more than 100,000 requests per hour), when using WebSocketSharp it is receiving all 100,000 notifications but there is memory leak (server goes ...
MSD86911's user avatar
1 vote
0 answers
258 views

I have a .NET MAUI Shell application with a Flyout menu targeting .NET 9. The Action Bar in both Light and Dark mode is set to be black. I want the hamburger menu icon and the back button to be white ...
ChrisJ's user avatar
  • 211
1 vote
1 answer
80 views

I have a number of HTTP triggered Azure Function apps that do not time out when in production. However, when I want to debug them by stepping through the code (in Visual Studio 2022), slowly and ...
zeiddev's user avatar
  • 710
Best practices
0 votes
3 replies
65 views

I’m studying and implementing the Composite design pattern in C# for a university project. In most textbook examples (GoF, Refactoring.Guru, etc.) the class hierarchy looks like this: Component ├── ...
user31880897's user avatar
0 votes
2 answers
108 views

Use case: I want to write a JsonConverter for a generic type like this, but I cannot apply it to the type itself: public class EditingModelConverter<T> : JsonConverter<EditingModel<T>&...
Luke Vo's user avatar
  • 21.6k
0 votes
1 answer
127 views

In our system we are hashing passwords with the following method. public static string HashPassword(string password, byte[] salt) { if (salt == null) { throw new ArgumentNullException($...
Cerkvenic's user avatar
  • 377
0 votes
1 answer
104 views

I get this error: Failed to emit module 'xyz': Changing the version of an assembly reference is not allowed during debugging: 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=...
Jeremy Thompson's user avatar
0 votes
2 answers
64 views

I know that in the early times of .NET Framework, you could build an assembly into EXE and then use that "EXE assembly" as a dependency of another .NET Framework assembly which, too, could ...
Pavel Foltyn's user avatar