Category "c++sharp"

Scroll Chat Window in Microsoft Teams

I am trying to make an application that would allow me to copy a chat(archive) from "Microsoft Teams". I used SPY++ to get window handles and then I used WIN32

Process terminated. Couldn't find a valid ICU package installed on the system in Asp.Net Core 3 - ubuntu

I am trying to run a Asp.Net Core 3 application in Ubuntu 19.10 thru terminal using dotnet run command but it does not seem to work. I get this error. Process

Json file was not found in Android

I am developing a game for mobile and can't create a normal save system because when playing on the phone the error is logged: Could not find the file. I use th

FunctionsStartup vs IWebJobsStartup, problems reading HttpHeaders on the request

I am building a .NET Core 3.1 Azure Functions application on my local and am trying to configure a startup class. When I implement a class to inherit from Funct

Map nested object with Automapper in C#

I use the latest version of AutoMapper 10.1.1 in my .NET Core project. I have a simple database for learning new words in a language I want to learn. I have the

EntityFramework is very slow to compare strings because create a nvarchar sqlparameter instead of varchar

I have this sample query: context.BarcodeTipiDoc.AsQueryable().Where(d => d.Barcode.CompareTo(minBarcode) > 0); That query runs very slow because Entit

.Net 6/7, C#, desktop three-tier app: use gRPC or not?

.Net 6/7, Windows/Linux, C# mostly. I am developing a set of applications on a three-tier architecture. There are many clients (up to ten in the normal case) re

Expression can't be evaluated, because there is a negative frame on top of the stack

I'm creating a test station program in C# where I communicate with a test pcb through a ftdi to Uart cable. All works fine but sometimes my application crashes.

Angular and .Net Core Project VS 2022: An unhandled exception occurred: Project 'Leon\AppData\Roaming\ASP.NET\https\<projectName>.pem' does not exist

Hello I am building an Angular/.Net Core project and creating the projects by following Microsoft's suggestion, https://docs.microsoft.com/en-us/visualstudio/ja

Specflow is not executing tests in Visual Studio 2019

I have a very weird behavior with Specflow that only applies to one team member. Everyone else have no issue what so ever. The VS2019 testrunner is correctly d

How to fix C# Warning CA1416 in vscode?

I'm just starting to learn C# following Brackeys on Youtube. Upon writing along I get this problem pop up in vscode: { "resource": "/d:/OneDrive/Programming/You

Dynamicly adding StackLayout

So what I wanna do is have a stacklayout, with entries etc. Added when I set it in the code. For example, I have 3 entries, once they are all filled I want a se

Visual Studio Nuget Update - Access denied to \packages\System.Security.Cryptography.X509Certificates.4.3.2\.signature.p7s is denied

Hi currently getting the above error when trying to restore or update packages via Nuget on VS2019 16.8.2. The project was built on anothe rmachine then moved t

How to abstract away an implementation that requires runtime data during its construction?

I have some trouble with dependency injection. Assume we have the following code: [Snippet 1] public class FooBar { public FooBar (){} public void DoSome

C# HTTPS Server on Ubuntu

I'm trying to get an HTTPS connection working on Ubuntu from my C# HTTP server. I've enabled HTTPS in my HTTPListener as you would on Windows, however I am unab

Can't access User Secrets in ASP.net core 3.0

My question is simple. I have an ASP.net core 3.0 app, I added secrets using visualstudio and pasted my secrets into the secret file normally. Then inside my P

C# programm can't find my workspace with MSBuildWorkspace

Hi I am trying to analyze my CsProj using Roslyn. I'm having issues finding my solution. This is my code: using System; using System.Collections.Generic; using

Does CefSharp support the promises of the JavaScript?

JavaScript code below works in the console of the Browser. But when i put this code in CefSharp, CefSharp returns null. Im using CefSharp 100.0.120-pre. Does Ce

Correct way to retry HttpClient requests with Polly

I have an Azure function that makes a http call to a webapi endpoint. I'm following this example GitHub Polly RetryPolicy so my code has a similar structure. So

FileStream.ReadAsync blocks UI if useAsync is true, but doesn't block UI if it's false

I read about the useAsync parameter in this FileStream constructor: FileStream(String, FileMode, FileAccess, FileShare, Int32, Boolean) I tried to use the Fil