Category "c++sharp"

How do i get code completion for C# scripts in VSCode for Unity on Linux/Ubuntu?

I recently came back to unity, as i found out that it does now support installation linux. It works, but when editing the scripts with vscode i do not get code

Amazon S3 sink in serilog is not working. How to use s3 Sink with serilog?

public class program { public static void Main(String args[]) { var levelSwitch = new LoggingLevelSwitch(); levelSwitch.MinimumLevel

Using `await` in AuthorizationHandler

I have a AuthorizationHandler depending on a Service offering async methods for .NET Core 3.1's Authorization Middleware. I have o call some of these async meth

Use the ValidateAntiForgeryToken attribute with JSON POST data

Some of my controller methods have the [ValidateAntiForgeryToken] attribute for the usual reasons. It's only app-internal actions, no cross-site API or similar.

WinUI 3 runtime localization

I am developing WinUI 3 app, currently stuck with localization. Although I wrote separate resw resource files for different cultures and localized with x:Uid I

Entity Framework: Getting exception while inserting row in MySQL Table

I recently switched my database from SQL Server to MySQL. I am still using Entity Framework 6 to do CRUD operation in database. When I was using SQL Server as b

Why register MysqlConnection as Service?

I'm trying to learn asp.net core 6.0, and I have a website that I'm working on. I needed a mysql connection in my website. I opened google and started searching

ASP.NET download csv file as zip?

I've been reading through: https://www.aspsnippets.com/Articles/Export-data-from-SQL-Server-to-CSV-file-in-ASPNet-using-C-and-VBNet.aspx Rather than only have t

cannot convert from class to 'T' [closed]

I have the following code: await ProcessBuffer<ChannelItem>(item); await ProcessBuffer<SiteItem>(item).Wait(); await ProcessBuffer

cannot convert from class to 'T' [closed]

I have the following code: await ProcessBuffer<ChannelItem>(item); await ProcessBuffer<SiteItem>(item).Wait(); await ProcessBuffer

Create custom properties at runtime

I am trying to create a custom property (like Name, BackgroundImage etc.) for my dynamically created PictureBox called "angle". And use it like that: PictureBox

Troubleshooting enums with efcore.pg

Are there any best practices in troubleshooting enums when using with Npgsql.EntityFrameworkCore.PostgreSQL provider? It's just that I don't know where to look

Easier way in .net Avalonia to change the background color of the Window's System Top bar?

In dotnet's Avalonia-UI framework. I'm using a dark UI and I managed to make everything dark as per this example but one thing: the window's System top bar in W

Byte to Varbinary(max) to Base64

Ok so i generate an img in c# and save it as follows: ... using (MemoryStream ms = new MemoryStream()) { bitMap.Save(ms, System.Drawi

Xamarin.Forms: Reload a contentpage contained in a tabbedpage to update the data

The default language of my Xamarin.Forms app for Android is French. I would like the user to be able to change the language and choose English or Spanish. To d

Does automapper support mapping collections with circular references?

I'm using automapper to map collections of incoming DTOs objects and save it all at once using Entity Framework. Everything works perfectly fine till I came acr

Ubuntu-OS Compatible Tiff image format to Jpeg image format Convertion (.NET 5)

I want to Convert Tiff file/filestream into Jpeg file/filestream. I am curretly developing a Blazor Server app with .NET 5 in Windows. But my Server is in Ubunt

android.os.RemoteException: Accounts ContentProvider failed: GoogleCertificatesRslt: debug cert rejected:

hi tell me pls where and what this mistake. im beginner and dont know what its means FATAL EXCEPTION: Blocking Thread #1 Process: com.google.android.gm, PID: 23

How to add button to a specific DataGridView C# WinFrom

Hi, I am very new to C# and window forms. Just like this image showing, I added DataGridView_B to DataGridView_A, where DataGridView_B is usually invisible an

Is OnDestroy reliable in Unity?

In Unity I have a script in which I connect to a socket via TCP and want to use this connection every frame. I need to dispose and clean up after that. My idea