Category "c++sharp"

.NET 6 obfuscation

I'm trying to obfuscate an .exe file obtained after compiling my .NET 6 project with the "Produce a single file" option, the problem is that no obfuscator works

How to solve the Galaxy numeric keyboard nightmare

I've been struggling with the Samsung Galaxy numeric keyboard decimal separator nightmare. I have an Entry on which I must only accept numeric values (including

Failed to setup dotNet certificate on mac by all means

I am trying to run the Dotnet version 6 app on macOS latest version I searched everywhere, it was always required to install the certificate although I had a va

grab UserSecrets from a NuGet package

I've written a C# class library for my company to use internally, and it uses DotNet UserSecrets to allow each developer to have their own credentials set witho

Unusual Target Invocation Error in Unit Tests

I'm trying to run a group of 12 unit tests. When I run the entire group, one test passes and the rest fail with the same error: Could not find default endpoint

PGP BouncyCastle + Kleopatra Decryption: Unknown Packet Type: 20

I am attempting to decrypt a file using BouncyCastle in C# that has been encrypted with RSA via Kleopatra. Unfortunately, I am receiving an error that states "

My Xamarin app keeps crashing due to Databinding(Basic Databinding)

I was trying to use Databinding in my Xamarin app. After implementing, just like the many instructions suggest, it just always crashes while loading the app. Wi

C# How to delete certain part of string from text not to delete the rest text [duplicate]

Like in the title, how to delete a certain part of text without deleting the whole text. The example how it should work. "Some text I put in t

BlockSize must be 128 in this implementation

I'm using the following code to decrypt some strings I reicive but I'm getting the following error: BlockSize must be 128 in this implementation. I would like t

Entity Framework Core: one-to-one configuration

I updated the title to be more relevant. I have two objects and wish to use EF Core to map them to a database using code first. I have shortened them a bit for

Insert NON-DUPLICATE Data into SQL Database from Excel file using ASP.NET Core 3.1

I'm trying to use two C# DataTables like below to meet my requirement. dtExcelData: This DataTable holds the data which is uploaded from Excel file. This data s

How do I define and use IOn[X]SetListenerImplementor

I am reading through the source code for Xamarin and came across these two dialogs: the TimePickerDialog and DatePickerDialog. When reading through these, I see

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