Category "c++sharp"

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

The type initializer for 'Google.OrTools.ConstraintSolver.operations_research_constraint_solverPINVOKE' threw an exception

I have a google routing web service. it works in a local run project. but when I upload it on the host I get this error message: The type initializer for 'Goog

Rx.Net - process groups asynchronously and in parallel with a constrained concurrency

Playing with System.Reactive trying to resolve the next task - Break an incoming stream of strings into groups Items in each group must be processed asynchronou

GenerateFeatureFileCodeBehindTask task failed unexpectedly

when I try to build I am getting this error. I am using VS studio 2019, and Specflow 3.9.69 Severity Code Description Project File Line Suppression State Error

Error "Cannot bind argument to parameter 'Name' because it is null" when running PowerShell script from C#

AFAIK, the only way to change the type of an Office 365 mailbox to Shared is via Exchange Online Powershell, and seeing that I have to do so from an ASP.NET Cor

ASP.NET MVC Core Consuming Web API with Arrays?

I am having difficulty and although I thoroughly (I think) researched the web, including here at SO, I cannot seem to find what I am looking for -- or I am bein

Cannot start lambda with Mock Lambda Test Tool

I've been working with AWS lambdas for a few months. I was working with a lambda and it was fine at the end of the day. I came back to work on it the next day,

Can I combine a gRPC and webapi app into a .NET Core 3.0 in C#?

I am using dot net core 3.0. I have gRPC app. I am able to communicate to it through gRPC protocol. I thought my next step would be add some restful API suppo

NU1202: Package is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v3.0)

I have created a new Solution where I have added a few projects. They are either ASP.NET Core, Class Libraries or NUnit Test projects. Both the ASP.NET and test

FFmpeg library in WPF

I am building a softwere that can decode and encode using Wpf and c#, and I want to do that using, FFmpeg libary. I saw the ffmpeg autogen warpper but I couldn'

How to know which Outlook Calendar item was deleted? [duplicate]

The following code alerts when new Outlook Calendar items are created and/or deleted: static void Main(string[] args) { var oApp = new App

How to include members of base entity in Swagger API Documentation?

I have something like these: BaseDTO public record BaseDTO { public virtual int Id { get; protected init; } public DateTime Timestamp {