Category "c++sharp"

Unable to create an object of type 'AppDbContext'. asp.net 6/mvc

MY ERROR: ı want to "add-migration" but ı cannot also ı use web app and .NET 6.0 Unable to create an object of type 'AppDbContext'. For the diffe

Error when replacing .ToList() calls in with an IQueryable

I'm trying to improve the efficiency of this method and I can't figure out why my "solution" is throwing an error. Here's the existing and working, albeit slow,

How to use a generic HostBuilder in a UWP application

In my WPF applications I use a generic HostBuilder in this way: public partial class App : Application { private readonly IHost _host; public App()

Remove a BlurEffect from control WPF C#

I have a border containing a textblock, which has a blur effect applied to it: <Border Grid.Row="2"> <Border.Effect> <BlurEffect Radi

Unity gyroscope reads only two axes

I want to make it so that the gyroscope will only change the x and y-axes of an object. There is code for one axis and for three axes (mostly used), but I could

How to develop ms excel ribbon functions

how to develop ms excel ribbon functionality not COM add-ins or VSTO add-ins. Using visual studio Thank you I want to implement excel ribbon functions to valida

Google application credentials in azure app service (aspnet core web api)

So I am using Firebase SDK to send push notifications to my android clients. On local IIS this is how I have configured FirebaseSdk. In Startup.cs I have Fir

Implementing Azure Event Grid event handler in a Web API which subscribes to changes in Azure App Configuration

I am exploring various methods to get configuration data from Azure App Configuration and got most methods working however I am struggling to implement the Azur

Loading libzstd.dll in C# ASPNet Framework application

I'm upgrading the mongo driver to an ASPNet Framework (4.8) application from 2.7.3 to the latest, 2.15.0. I just use VS to upgrade the nuget packages, nothing

Unity Build Error: "System.UnauthorizedAccessException: Access to the path 'C:\Users\..\lib_burst_generated.txt' is denied."

I have a project in Unity which was built with version 2019.4.13f1. I opened it with version 2021.2.16f1 and since then when I try to build the project in an ap

C# mock unit test GraphServiceClient

I have a problem writing my unit test in C# using Moq and xUnit. In my service I have the following code: var options = new TokenCredentialOptions { Authori

Cant Update Image in a quick succession

I'm doing a simple code to update profile pics, by saving uploaded file into a folder and processing its required versions using Bitmap. Issue is that i cant ch

How do i properly bind the IsPressed property to my command parameter?

I've made a custom button to bind a command to a (custom, routed) IsPressedChanged event so that the command is executed both when the button is pressed AND whe

FileZip compression with cancellation

How to cancel long running compression task and release all resources when using ZipFile.CreateFromDirectory or other ZipFile compression methods in C#. Couldn'

Is there a way to generate XML-style comments for all methods/classes in project?

When using an IDE like Visual Studio or Rider for C#, writing triple-slashes auto-completes to an XML-style comment, along with fields for input and output (whe

Why does my OpenGL ES app crash on glDrawElements?

I have developed a mobile game with OpenGL ES 3 on Xamarin (Which uses OpenTK). It's running fine on most devices, but crashes on some devices (HUAWEI Y5 lite).

How to check if string contains ANY values in the given array AND NOT others values

I wanna make simple string calculator, my point is to check that user typed in any values from the array and not others. string[] occurences = new string[] { "1

Unregister Events MultiCastDelegate Performance Problem

I have a problem: Our application has grown so far and therefore there is an object with many many EventHandlers. The point here is that removing them takes far

Same password hash not matching

I am trying to create and test my api for login using C#. Below is the major part of the code: private static void CreatePasswordHash(string password, out byte[

Physics.Raycast Grounddrag system not working

I'm trying to implement a unity FPS Rigid body movement controller into my Unity 3d project. However I cannot seem to add drag to my player. I've been trying to