Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
0 replies
24 views

I am trying to send requests to an API that uses GraphQL for its data filtering. The problem I am having that I need to build each request manually through a string interpolation which is easier said ...
James Andrew Smith's user avatar
0 votes
1 answer
36 views

While I was able to get my C# code running in the browser as WebAssembly, I get errors like this when trying to run any (vitest) unit tests that load the module that initializes .NET: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯...
Qwertie's user avatar
  • 17.4k
0 votes
1 answer
34 views

I'm trying to provision a lambda on a free localstack instance. As such, I cannot build the lambda as an image and push it into localstack's ECR because ECR is a paid resource. So I'm taking the ...
QuisEs99'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
0 votes
0 answers
47 views

I'm trying to use the Sap connector for .NET 8 (v3.1.6) and i have run into an error saying that the "sapnco_utils.dll" module is not found. I have the dll file and I have added the assembly ...
Arjun Hariprasad's user avatar
0 votes
1 answer
30 views

I am deploying an azure webapp with the following settings: resource functionAppName_web 'Microsoft.Web/sites/config@2021-03-01' = { parent: functionAppName name: 'web' properties: { ...
CNL's user avatar
  • 43
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
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
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
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
0 votes
1 answer
208 views

I'm working on a high-performance ASP.NET Core Web API where each request can return hundreds of entity records. Each entity includes multiple navigation properties and nested objects. Currently, I’m ...
Mina Golzari Dalir's user avatar
4419 votes
35 answers
1.1m views

How can you enumerate an enum in C#? E.g., the following code does not compile: public enum Suit { Spades, Hearts, Clubs, Diamonds } public void EnumerateAllSuitsDemoMethod() { ...
Ian Boyd's user avatar
  • 259k
2682 votes
61 answers
1.1m views

I want to do something like: MyObject myObj = GetMyObj(); // Create and fill a new object MyObject newObj = myObj.Clone(); And then make changes to the new object that are not reflected in the ...
NakedBrunch's user avatar
  • 49.5k
1 vote
1 answer
32 views

Microsoft's feature management documentation implies that the correct format for config for feature management is the following: { "feature_management": { "feature_flags&...
Ruskin's user avatar
  • 6,241
-1 votes
0 answers
87 views

I have a C# installer app that needs to identify which user session to target. The application fails to identify the correct user when deployed via Microsoft Intune. For example, when deployed via ...
Bob22's user avatar
  • 7
0 votes
0 answers
48 views

I started with a working app with static exported C# methods like [SupportedOSPlatform("browser")] // suppress CA1416 "only supported on: 'browser'" public static partial class ...
Qwertie's user avatar
  • 17.4k
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
1008 votes
114 answers
1.3m views

I am working on a WPF, C# 3.0 project, and I get this error: Error 1 Metadata file 'WORK=- \Tools\VersionManagementSystem\BusinessLogicLayer\bin\Debug \BusinessLogicLayer.dll' could not be found C:\-=...
Oliver's user avatar
  • 36.6k
0 votes
0 answers
45 views

With a new version of grpc a new service was introduced with a new bidirectional stream. The problem is, that when the server runs with an old grpc, the stream does not (reliably) throw an exception ...
Malior's user avatar
  • 1,401
2191 votes
49 answers
1.4m views

How can I create an Excel spreadsheet with C# without requiring Excel to be installed on the machine that's running the code?
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
0 votes
1 answer
69 views

There are two pages in my app: Page1.razor (home) and Page2.razor. There is no problem rendering first page. But when I navigate to second page, there is flicker problem. I put 1000 ms sleep to better ...
shmowzow's user avatar
2 votes
2 answers
88 views

I have the following project structure (the full repo can be found at https://github.com/asarkar/functional-csharp-buonanno) that uses Microsoft Testing Platform + xUnit v3 for testing. root ├── src │ ...
Abhijit Sarkar's user avatar
2631 votes
29 answers
909k views

It is discouraged to catch System.Exception errors. Instead, only the "known" exceptions should be caught. This sometimes leads to unnecessary repetitive code, for example: try { WebId = ...
Michael Stum's user avatar
0 votes
1 answer
169 views

I am developing an Avalonia application and I decided to try the multi-platform. The project I started is using .NET 8.0, infact I installed the .NET 8.0.121 SDK. When I start the application on the ...
DigioMatthy's user avatar