Category "c++sharp"

The framework 'Microsoft.WindowsDesktop.App', version '6.0.0' (x64) was not found in docker image

I have created a webapi project in dot net 6.0, which internally uses some winform code. I want to create a docker image however it is throwing the following er

When and where should I be triggering my high score entry?

I am tackling a Unity course challenge, where we are supposed to implement data persistence between scenes and across sessions. After deciding to go with JSON,

Injecting dependencies into dynamically loaded .dll (.net core)

Similar to How to Inject Dependencies to Dynamically Loaded Assemblies, I want to inject dependencies into classes from dynamically loaded assemblies. Is this p

Entity Framework rollback and remove bad migration

I'm using EF 6.0 for my project in C# with manual migrations and updates. I have about 5 migrations on the database, but I realised that the last migration was

I want to Export the data/content of DataGrid to Pdf & csv file in UWP application

There is no any such specific answer for UWP implementation that will give me the correct solution. I have a datagrid which will have data from it's item source

LINQ to SQL, 'Linq' does not exist in the namespace 'System.Data'

I tried to connect my project to a database, using LINQ to SQL, following a few online guides. I created a simple database Library, added new LINQ to SQL Classe

How to Read & Write to same Blob file in Azure Function (.NET6)

In Azure Function V1 (.NET4) code below worked fine [FunctionName("run")] public static HttpResponseMessage run( [HttpTrigger(AuthorizationLevel.Anonymous, "pos

C# Datagridview How to set value for DataGridViewComboBoxColumn

I have populated my datagridview which has one combobox column. this way i have populated my combobox column of datagridview. if (dt != null && dt.Rows.

How to open the Property dialog of selected objects in Management Console?

I am searching for the possibility to open default property dialogues for particular Windows objects, like: the property dialogue for a particular service in se

c# OpenIdConnect authentication

I'm trying to secure an API with keycloack. The API is called by a server. So there is no browser. (Logging in via Browser works fine and i can access the api.)

Accessing control inside datalist

my name is Prince. I have a datalist named datalist1, i inputed a label, image and button in the datalist. I inputed the image of a field from my database in my

How can I retrieve multiple sys_refcursor using dapper and c#?

I want to retrieve multiple sys_refcursors from oracle db using dapper. My PL/SQL code below procedure GetData2 (p_result out sys_refcursor, p_result2 out sys_r

Load Assembly compiled with newer .Net Framework than executing assembly

I have an application compiled with .Net Framework 4.0 and I want to load a WPF UserControl inside it. The user control is a dll compiled for .NetFramework 4.8.

C# Rotate pictureBox , I want to move the bus vertically and I cant, can you help me of coding?

using System.Drawing; using System.Windows.Forms; public partial class Form1 : Form { public bool move_right, move_left, move_up, move_down; public in

Game object can't detect others when using collision.gameObject.tag in unity

I have designed a scenario as below: I created an object spawner to collide with things tagged as "ob", using a boolean to manage the timing to spawn new obstac

How can we add DI (Dependency Injection) of a class library to multiple projects in C# asp.net 6

here I am trying to add dependencies from SchoolAppASPv2.Infrastructure to SchoolAppASPv2.Identity but I am not being able to. It shows an error in using Schoo

c#: cannot FindCertificateByHash when loading certificate from X509CertificateStore

I need to add a BinarySecurityToken to the WS security header of a SOAP request. I followed https://stackoverflow.com/a/22560639 and the Samples of MicrosoftWSE

Roslyn SonarAnalyzer.CSharp does not respect rule settings from SonarLint.xml

I am trying to customize some rules, particularly S134 but it does not take my deviation from the default max parameter into account Repro: Create new Console A

VSTEST@2 - error could not find testhost | Azure Pipelines

I'm running tests solution on azure pipeline with help of vstest@2 task. Pipeline distributes test cases on 4 agents and then runs them. Task yaml: - task: VS

EF Core - ValueConverter or OwnedType for simple ValueObjects?

I use value objects to encapsulate validations like maxLength. This is an extract of a sample class without factory method and validation: public class CallingN