Category "c++sharp"

NLog not contains filter doesn't seem to work

I am using NLog 4.6.8 and have the following simple NLog.config and Program.cs NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http:

Saving picturebox WITH backgroundimage to file [duplicate]

is there any way to save a picturebox (Windows Forms) with it Backgroundimage to a file? I tried to store the picturebox.Image into a bitmap b

NLog not contains filter doesn't seem to work

I am using NLog 4.6.8 and have the following simple NLog.config and Program.cs NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http:

Game works fine in editor, not in build

I am working on a game and i have a script to save the stats for characters. The same script is used for hero and for the enemies. There are actually 2 scripts

Install A folder from the web into a directory with C#

I am trying to make an installer app for an aircraft for X-Plane 11. I need to find a way to get a folder and install it to a user defined directory. How do i d

How to make vscode act like Visual Studio IDE when pressing Enter within curly braces

Say I'm writing function: after I've pressed 'ENTER': after formatting: Is it possible after second step (pressing 'ENTER') to get result like in Visual Stud

Avro ICallback is obsolete but what is the replacement?

Avro ICallback<T> is marked as obsolete: using System; namespace Avro.IO { /// <summary> /// Obsolete - This will be removed from the publi

Javascript: get a BadRequest error from a Web Api .Net 6 using fetch

I have a little trouble using fetch, This is javascript code: function loginJS() { const login = document.getElementById('login'); const nome = documen

Using SocketIO with Unity Quest 2 vr as client and Node.JS as server

Me and my team are building a VR game for the Quest 2 with Unity written in C#. We have a program that is the server that is written in JavaScript (Node.JS), th

How to implement offset based pagination for nested collection in HotChocolate GraphQL?

I've been trying to add Offset pagination for a collection inside an entity. I understood that I cannot use the [UseOffsetPaging] attribute directly. So I tried

Add Swagger description to minimal .NET6 APIs

I have a small project in .NET6 that contains minimal APIs like that one app.MapGet("/clients", async (IClientRepository repo) => { var r

Entity Framework. How to map class with nested Enumeration class

I am using an Enumeration class like this public class SizeUnit : Enumeration { public static SizeUnit Inch = new SizeUnit(1, nameof(Inch)); public static

.NET Maui: Vector/SVG splashscreen not correctly resized

Testing to add a custom splash screen for a Maui app, I read some Microsoft docs that says At build time, the splash screen image is resized to the correct si

intellij rider c# documentation english language

I just started with .net and Intellij Rider. I need to have spanish version of windows on my work laptop but I prefer to have everything related to code purely

Problems with user secrets in .Net console apps

I've created a .Net 6 console app. I added user secrets, but I only get the values defined in the appsettings.json file. I use Visual Studio Professional 2022 v

How do you create a component that allows the consumer to extend the interfaces for parameter inputs?

This may be a dumb question, but my search so far has come up short and I worry I might have too specific of a use case to find a clear answer anywhere else. I

How to register services with dependency container services by reflection in c#

I have an interface IProcessor and multiple processors implementing this interface: Processor1 : IProcessor Processor2 : IProcessor I want to inject these proc

Signalr Core WithAutomaticReconnect passing headers

I have gone through Signalr Core documenations and while I understand the feature .WithAutomaticReconnect() What I am curious is does it pass the headers still

Is there a way to Marshal a byte[] into a string without copying in C#?

I am in the process of building a sub-part of a native application, namely a Unity application that runs as a child of a different application written in a comp

How to silence Serilog in integration tests with the new minimal hosting model of .NET 6

I have a .NET 6 web API project with existing integration tests for some of the API endpoints. The project uses Serilog for logging and everything was fine so f