Category "c++sharp"

HttpClient using FormUrlEncodedContent

I have checked other answers before posting this, so please try not to jump straight to conclusions here. I'm using HttpClient to connect to the API for an appl

Running .NET 5 Api under Kestrel from Visual Studio 2019 ignores launchSettings.json applicationUrl setting

We are having an "only on my machine" issue that nobody can figure out. We have a .NET 5 Api that we run under Kestrel for development purposes. On every other

Simulate key press events on a Mac using C# .Net Core

I have a solution built in C# .Net Core 3.1. When running in Windows I use the Windows Input Simulator package to simulate key presses, but what can I use on a

How to support light and dark mode title bar in wpf c#?

So, I'm trying to customize my wpf app a bit, but thought I would be better to leave the title bar as it is and not do a custom title bar. Problem is, the title

Is there still a Microsoft Authenticator dev API? How can I use It?

I don't know exactly if I should ask this question here, neither if I'm using the exact right tags, but... I need to add a 2FA to a system I'm developing and, w

Trying to invoke a backdoor method in xamarin.uitests getting a failure

I have a xamarin.uitest project and an app project, added in main activity in the app project: MainLauncher = true and the method: [Export("MyInvokeMethod")

Add line numbering to a .docx with ActiveXObject('Word.Application')

Hi i want to add line numbering to the opened .docx file before converting it to .pdf and i really didn't find how to do that on code, it is converting my .docx

How to fix 'Gatt write characteristic FAILED.' exception in xamarin forms?

I am trying to do a GATT write operation in a BLE after Notification where I am getting the value from server. The write operation works fine when there is no p

Perlin noise and negative coordinates

I am working with Perlin Noise and coordinates and want to know how to handle negative coordinates in order to make it not symmetric. Example image of my Perli

See what link was used when new user joins to telegram channel

I am trying to make a telegram bot for accounting invite links. It is supposed to count how many times a certain link was used. I tried to get an invite link fr

Trouble binding ViewModel to View, as part of a ListViewItem DataTemplate with ReactiveUI

I'm having some issues trying to display a view in a ListViewItem Data template in reactive. I have a ListView in, for example ReceiptView.xaml whose source is

How do I code a browse file button that lets the user upload their own STL file into a STL viewer?

I am currently trying to integrate an STL File Viewer in my WPF application. I have been using the HelixToolKit to do this and currently can display an STL/OBJ/

Set configuration part in startup with static parameters not json file in .net core

I have this line of code in my test solution . I want to config ravenoption in my test code. public IHost host = null; public IDocumentStore documentStore = nul

How to turn on CircuitOptions.DetailedErrors?

I'm getting this message in the console when running a server-side Blazor app: Error: There was an unhandled exception on the current circuit, so this cir

Azure DevOps build task VSBuild copies DLL marked as copy=false

I'm currently trying to create a CD pipeline with Azure DevOps with a solution using .NET Framework 4.8 and Oracle. Unfortunately, I can't make it run; as the D

Suggested architecture for a project with 2 Frontend applications (Blazor Server and Angular) with EFCore, Identity, Mediatr

I am currently working on a school project with a classmate. We've decided on making the classic setup of an Administration-client (Blazor Server) and a Member-

How to fix ''Gradle Build Failed'' on Unity?

I'm trying to build my android app for a while and can't seem to find any solution for this problem: Image Unity Version: Unity 2020.3.21f1 (64-bit) JDK, SDK, N

How to run python script from C# code by using command

I have a script file(run_edr.py) in my local machine and when I run it by using "cmd" and the following command then the script works perfectly. The script take

Enable/Disable Conversational bot in MS Teams

How to enable and disable the conversational bot in MS Teams? In our application, we have to enable the conversation bot in bot chat window: I tried "isNotifi

How Can I Pass an Object Property to a Razor Component as a Parameter

I have a razor component library where I'm creating custom, reusable components. I have a "ContentItem" component that I would like to simply bind the property