Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

I implemented this simple loop in C# which runs a 100 times, and in each iteration waits for 50ms. using System.Diagnostics; var sw = Stopwatch.StartNew(); for (int i = 0; i < 100; i++) { ...
Mark Vincze's user avatar
  • 8,115
0 votes
0 answers
28 views

I want to make an application that reads out the db values from a microphone. For that I use NAudio to "record" a WaveIn stream, convert the Data to samples, get the max of each buffer, ...
DefinitivVair0's user avatar
0 votes
0 answers
23 views

λ ~/ dotnet --version 10.0.100 λ ~/ system_profiler SPSoftwareDataType SPHardwareDataType Software: System Software Overview: System Version: macOS 26.1 (25B78) Kernel Version: ...
Booshwa's user avatar
  • 35
0 votes
0 answers
56 views

hi everyone first of all i did what i all know but it doesnt work services: hotelreservationapi-presentation: image: hotelreservationapi-presentation:latest build: context: ./...
Heansy PG's user avatar
0 votes
0 answers
13 views

I have a project where I need to dynamically create .resx files based on other input files that are coming from somewhere else. These created .resx files then need to be compiled and embedded in the ...
Marcel V.'s user avatar
  • 302
2 votes
0 answers
63 views

I'm trying to read a log file that was written from a custom ILoggerProvider in a dotnet application: HostApplicationBuilder builder = Host.CreateApplicationBuilder(); builder.Logging.ClearProviders();...
Paul's user avatar
  • 3,984
1 vote
2 answers
106 views

I tried this code: CREATE OR REPLACE FUNCTION public.t4(in iid int, OUT n1 text, OUT n2 text) LANGUAGE plpgsql AS $function$ BEGIN SELECT DISTINCT n1=l.name, n2=l.comment from ...
Yarr's user avatar
  • 47
Best practices
0 votes
4 replies
104 views

I need to process a list of FileStream objects with the DoSomethingWithFileStreams method like below. If I write code like this, I am concerned that the list of FileStream gets disposed before they ...
Tom's user avatar
  • 192
-3 votes
1 answer
70 views

I draw triangles in OpenGL using DrawArrays(): public void DrawTriangle( Vector2 a, Vector2 b, Vector2 c, ShapeOptions shapeOptions = null) { shapeOptions ??= PresentationConsts.Shape....
Neomaster's user avatar
0 votes
1 answer
52 views

I have a main project of type console, and it references other library-type projects in the application. When I build the solution, it compiles normally, but when I run it in debug mode, it tries to ...
João's user avatar
  • 1
0 votes
1 answer
53 views

When I generate a data mapper library using Liquid Data Mapper, it always binds to .NET Framework 4.6.2, but I need it to target .NET 8. How can I change this functionality? My source is a CSV file ...
safepage's user avatar
-1 votes
1 answer
57 views

My project is able to build and run, but when I want to publish the project, I get this : Warning As Error: Detected package downgrade: System.Net.NameResolution from 4.3.0 to 4.0.0. Reference the ...
hmmmmm's user avatar
  • 1
0 votes
0 answers
60 views

I'm working on a C# .NET Framework 4.8 SDK-style project (WPF, Sdk=Microsoft.NET.Sdk). I want to pass command-line arguments to my project when running from Visual Studio. I created a launchSettings....
韩吉斯's user avatar
1 vote
0 answers
42 views

I am working with a .NET + Angular WebApp Project I added Angular Aria to the Angular project hoping to use their Autocomplete feature for a Select Box. I copied the code directly from the first ...
freedomdev's user avatar
1 vote
1 answer
23 views

Can you tell me what I need to do to get the APK through the console? How do I check that all the needed tools are installed? And which command or set of commands will create the APK file? I can ...
tunkimi's user avatar
  • 11
1 vote
0 answers
45 views

I am using OPCFoundation.NetStandard.Opc.Ua.Server (version 1.5.377.22) and would like to: Create a structure data type on the server. Create a variable node of that data type on the server. Set ...
Tobus's user avatar
  • 105
0 votes
1 answer
36 views

I'm building a dotnet maui application. One of the targets that I am using is Mac OS X maccatalyst. My app consists of a hybrid web control that goes into the safe area with negative top margin so ...
chris's user avatar
  • 83
1 vote
0 answers
65 views

I have a stdio mcp server running locally. The mcp server builds and runs. I have created 3 basic mcp tools that I will use for context when I prompt in Copilot however my tools are just not ...
Harold_Finch's user avatar
1 vote
0 answers
30 views

I encountered a problem when deploying a socket application using signalr. I connect with the longpolling method and it still works, but the websocket gives an error: Error: Failed to start the ...
Nguyễn Trường Phước's user avatar
1 vote
1 answer
105 views

I am trying to run my database code, but I keep getting this error and I've done whatever I can think of to fix it, whether it is random posts, or chatgpt, but I can't seem to figure it out. The ...
Hockaj's user avatar
  • 11
0 votes
0 answers
33 views

SignalR hub running as an EKS pod handles 700 VUs via ALB but fails at 720+, yet successfully handles 1000 VUs via kubectl port-forward with 85% free CPU and 43% free memory. This confirms the ...
Jeet 1234's user avatar
1 vote
0 answers
56 views

We use an internal Artifactory NuGet feed inside our organization. Here is my NuGet.Config: <?xml version="1.0" encoding="utf-8"?> <configuration> <...
Aisa Asghari's user avatar
-3 votes
0 answers
65 views

I have just started learning C# from its official tutorial in Microsoft Learn. In the record type section I saw this code: public record Point(int X, int Y); public static void Main() { Point pt = ...
Amr's user avatar
  • 7
0 votes
1 answer
94 views

I’m using the AWS S3 .NET SDK (Amazon.S3 + TransferUtility) to download files from an S3 bucket. Most file types download correctly (.txt, .zip, .webm, .ogv), but .mp4 and .mp3 always fail with this ...
RONNY's user avatar
  • 41
0 votes
0 answers
63 views

I am working with DevExpress v24.1 in a C# Windows Forms application. I am facing an issue where my DevExpress report only displays a single row of data, even though the assigned data source contains ...
ahmed barbary's user avatar
0 votes
0 answers
45 views

I have a DataTable read from a csv file: ID,ItemCode,ItemDescription 1,Test0,test item 2,Test2,second test item When I try to create an additional column as in https://learn.microsoft.com/en-us/...
NeartCarp's user avatar
  • 227
0 votes
1 answer
77 views

I have an ASP.NET Core 8.0 web application. In the appsettings.json I have a connection string defined. One pointing to a local database and one pointing to another database. "ConnectionStrings&...
user834252's user avatar
0 votes
1 answer
49 views

I was able to create a neat context menu that controls visibility of columns and wanted to show values of hidden ones in a tooltip, but I'm unable to, because somehow the very same binding is ...
KwarcPL's user avatar
  • 85
-1 votes
0 answers
24 views

i'm having trouble initializing Cef since i updated its version, we are using the version 89.0.170 and we upgraded to 140.1.140. the scenario is a follow: internal static class Program { ...
Marcelo's user avatar
Tooling
0 votes
0 replies
38 views

In the OSDP.Net library there is ControlPanel class representing control panel (ACU), which communicates with one or several PD (card readers). Class has RawCardDataReplyReceived event, which is ...
apdevelop's user avatar
  • 607
0 votes
1 answer
91 views

I tried experimenting with the new C#14 extension syntax. As an example, I wanted to implement a simulation of function currying using the << operator. public static class Curry { extension&...
Levente Bokor's user avatar
2 votes
1 answer
107 views

I have a list of records, by multiple UserID's. TableID UserID Status ------------------------ 1 3 3 2 4 3 3 3 4 4 4 3 5 5 4 6 ...
Sherry8212's user avatar
0 votes
0 answers
52 views

I am trying to run my .NET project in Visual Studio, but whenever I start the application—whether using Debug or Run—I get an error popup saying: This project doesn't know how to run the profile with ...
Nikhil Rao's user avatar
Advice
0 votes
0 replies
38 views

We have several applications built in .NET Framework 4.7.2 that uses .NET Identity for authorisation and authentication. I am trying to implement a session timeout, in line with OWASP recommendations. ...
Martin Vaughan's user avatar
-1 votes
1 answer
60 views

I have C# code that executes a Dapper Query, creates a temporary table, and uses a parameter to pass a value. In a subsequent query temp table is not available and will throw an error Invalid object ...
Akshay Chile's user avatar
0 votes
1 answer
114 views

I tried setting the SynchronizingObject like this: timer.SynchronizingObject = this;//The Window but VS told me I need an explicit cast. So I did that and the error went away. timer....
ispiro's user avatar
  • 28k
-3 votes
0 answers
75 views

I have a legacy .NET 4.8 framework project. I have tried to get these headers: Accept-Encoding CacheControl sent to my endpoint. But looking with Fiddler, they are not sent, even if I explicitly set ...
tdsrhh's user avatar
  • 1
1 vote
1 answer
145 views

private SolidBrush b; private Graphics g; //Encapsulates a GDI+ drawing surface Pen p = new Pen(Brushes.DeepSkyBlue); //Pens are used to draw objects ...
Smart Guy's user avatar
2 votes
1 answer
69 views

I'm building a mod for Unity based game RimWorld. I have the following assembly references in my .csproj file, using a variable so other people can build the project regardless of where RimWorld is ...
Nicole O'Connor's user avatar
0 votes
0 answers
32 views

Here is my .wxs file contents: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> <Package Name="...
jwdomes's user avatar
  • 11
Advice
1 vote
3 replies
74 views

I am a newbie in .NET - can someone tell me about dynamic forms? I have done master detail and simple crud - should I go for dynamic form r practice more in master details. I want to know about ...
Taimoor Ahmad 's user avatar
1 vote
1 answer
59 views

I'm trying to get a hardware id with a .net console app (target framewotk is net8.0-windows10.0.17763.0). The code is rather trivial, just var token = Windows.System.Profile.HardwareIdentification....
Volker's user avatar
  • 1,849
0 votes
2 answers
92 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
0 votes
0 answers
56 views

I recently updated my Visual Studio to the newest version (2026). Since I updated, my Android devices no longer appear in the list of devices. But even worse, since the update they don't appear in my ...
Kristof Van Moorter's user avatar
1 vote
1 answer
56 views

I have built a template project with a Template.json and this will generate the template fine ( no errors at all ) ive also managed to add some choices to the symbols that will add or hide code ...
Bithellio's user avatar
0 votes
1 answer
62 views

I want to set a rule in .editorconfig so that all C# files where namespace is not explicitly set should render an error. I've added these: dotnet_diagnostic.IDE0130.severity = error # Namespace does ...
Max's user avatar
  • 757
0 votes
1 answer
35 views

This is my ocelot configuration... { "Routes": [ { "UpstreamPathTemplate": "/api/test/{url}", "DownstreamPathTemplate": "/api/{url}",...
Nat Jacobs's user avatar
1 vote
1 answer
86 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
0 votes
0 answers
128 views

I'm trying to debug and run a .NET MAUI Android app targeting .NET 9 in JetBrains Rider (2025.1.3). SDKs installed: 9.0.308 [C:\Program Files\dotnet\sdk] 10.0.100 [C:\Program Files\dotnet\sdk] ...
Antonin937's user avatar
Best practices
1 vote
5 replies
91 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
2 3 4 5
6816