Category "c++sharp"

WIX Installer: ensure successive Version numbers on build

I'm trying to automate my Wix installer builds with my Visual Studio Builds. I am grabbing the application's Application Version via this in my installer.wicpro

Difference between HttpContext.TraceIdentifier and Activity.Current.Id

I use a "trace id" in logs. Advice on the aspnet repo and here on SO is to get a traceid from HttpContext.TraceIdentifier. But when the framework creates a Prob

print multiple return from void to multiple textboxes in c#

i'm trying to build a question-solving module, so i want to randomly print the "correct answer" data i got from the database, i use a void to get the data, i wa

Does string.AsSpan() prevent string allocation?

I am building a custom JsonConverter, and i was wondering about the behavior of AsSpan(). public override int Read(ref Utf8JsonReader reader, Type type, JsonSer

RAR file downloaded with C# becoming corrupt [closed]

I'm download a .rar file from a github release but the downloaded file is becoming corrupt. The file is fine it's just not working when I down

Get Windows NT Login From Azure AD msal

I am working on API that is secured using Azure AD. Is there a way to get the Windows NT login from claims? Example. jDelaCruz

Create a site term column with graph API

I'm trying to add a new column to a site using MS Graph API. I followed the docs, which shows a Text column example, and that works. When I try to add a Term co

Could not load file or assembly 'NLog.Web.AspNetCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c'

I'm upgrading my solution from .NET 5 to .NET 6 and getting the error at runtime Unhandled exception. System.IO.FileNotFoundException: Could not load file or a

Xamarin.Forms: editing (in VS) custom control's property value at runtime in XAML doesn't cause any updates

I have a custom control in Xamarin.Forms app that's described via XAML. For example, CustomControl.xaml: <ContentView xmlns="http://xamarin.com/schemas/2014/

How to deal with IEnumerables/Arrays/Collections in Fluxor State?

I'm currently trying to implement Fluxor for my Blazor WASM app and all the instructions/tutorials I found recommended something like this example for the Store

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Description: The process was terminated due to an unhandled exception. Exception Info: System.CannotUnloadAppDomainException

After a user closed the application. If the user have not had a reboot. Next time when this user try to open the application will have an error : The * applicat

Improve insert performance for a C# application into SQL database

I need to improve the performance of my insert in my C# application. I first go out and get data from a view. Then I go through a FOREACH loop to insert into a

C# - Theard.Sleep skips over lines of code

I'm working on a small C# Windows Form application. In this application, I've used Thread.Sleep to wait on the current screen before moving to the next one. The

ReactiveUi: How can I replace the default IViewLocator when using AutoFac?

High! I am trying to replace the default IViewLocator of ReactiveUi/Splat in WPF. I am using AutoFac as container. My goal is very simple: ReactiveUi/Splat shou

How to export a DevExpress PivotGridControl to Excel

I have a button click that attempts to export a DevExpress pivot grid to an excel file however when you open the file in excel or google sheets it zeroes some o

Why does validation in ASP.NET Core Razor Pages doesn't accept empty inputs?

I am learning how to code in ASP.NET Core Razor Pages and am working on validation right now. Both in client side and server side validation no input is allowed

How to focus textbox and send ENTER key using child handle?

How to focus and send 'ENTER' key to child control's textbox? code: //Get textbox child handle IntPtr TextboxChild = FindWindow("Edit", "mulatetwindow"); //S

Is it possible to convert Unicode ASCII bytes[ ] to actual strings(Hi)

Is it possible to convert following bytes[] to a string as "Hi". Currently it is showing as "H�" //"Hi" - is actual message byte[] bytes = {72,175}; stri

Google.Drive.Api Oauth 2 Credientials in Xamarin android application

I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for A