Category "c++sharp"

What's an appropriate way to background process file IO operations? [closed]

I am presently using a FileSystemWatcher to spot when files arrive in a folder. However, locked files are a problem and so I wanted to try a d

how to migrate global.asax event 'Application_Start' to program.cs on net.6?

I try to migrate an old projet with a console app and a webservice ( both on .net framework 4.6) to a .net 6 console app (I want to suppress the ws and just hav

Why is my design works fine only with small screen sizes?

I have followed this great tutorial to the letter to design modern UI using FontAwsome.Sharp RJ Code Advance Modern UI I have two issues , First in the form des

Can't add reference to System.Windows.Forms to .NET 5.0 Xunit unit test project

I have a solution in Visual Studio 2019 containing a WinForms .Net Framework 4.8 project and a .Net 5.0 test project. The WinForms project contains all my windo

Signal and Wait in C#

In the below application there are two parties that are calling ChannelReservationCache to fetch or add information. I want to use the "signal and wait" thing i

FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.SignalR.Core

I'm creating a .net core console application where some of the libraries are using SignalR. I have installed "Microsoft.AspNetCore.SignalR.Core" from nuget pack

C#- http client response help request

I have the following code: static async Task checkIMEI( double IMEI) { var client = new HttpClient(); var request = new HttpRequest

What options do you have for the internal logger of a logger provider?

I have developed Logging.Raven: a net core logger provider that stores log entries in a RavenDB database. When something goes wrong I write the error informatio

error in publish blazor-wams version.net5 after install visual studio 2022

I'm having a weird issue with publishing my Blazor WASM version .net5 project to IIS Service after I install my Visual Studio 2022 In Console Write This Error :

Refit 6 not working when android project built with unity

I'm using Refit 6 in unity for rest calls but when project is built for Android getting below error. Message: MissingMethodException: Constructor on type 'Refit

Entity framework core multi tenant : auto increment column based in another column value

Using entity framework core 6 with sample class public class Sample { [Key] public long Id { get; set; } public long TenantId { get; set; } public long

What does the "RayPerceptionSensore3D" compocent observe?

I'm just learning about Unity ML-agent. Does the "RayPerceptionSensor3D" component observe only tags and positions that have been hit by rays? Then, is it the s

Accessing namespace from another namespace. Is it an assembly issue? A Monobehavior issue? Syntax issue?

I'm trying to put an inventory management system (Devion Games from Unity's asset store) into the Ellen 3d Gamekit project (Also from Unity). The problem I'm fa

.NET MVC dropdown with dinamic data

I'm learning to use .NET MVC creating an app on Visual Studio. I'm trying to add a dropdown with dinamic data from one of my Models. The idea is that when a "pr

C# Selenium Webdriver

I started using selenium with CS and have one issue. When code is compiled, program cannot find webdriver path, because it's being moved into the .exe file. I f

EF Core/C#: Set many-to-many relationship with a variable field?

If you have an EF/asp.net Core app that has ads with services with a price. Where each ad can have many services (out of a predefined set of choices, like hairc

A dynamic array that changes size on one click function and being used on in another click function

I'm programming something for a school task and having a problem. I need to create an array, then I need to change its size on one-click function(the size of th

VS Code - How can I produce a strongly named assembly?

I have a class library I use for an assembly. It is comprised of three classes - classes A and B provide supporting types and methods for class C. After an asse

XmlReader stops deserializing after first array property

I have a custom list used to have features of BindingList<T> while also being XML serializable. The SBindingList<T> class is as follows: public clas

Retrieve C# Attribute Data With Extension Method

Looking for a way to retrieve attribute data for a property on a class (many different types) in my data layer with an extension method... Final goal is to see