Category ".net"

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

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

How can I pass a parameter to PDF rendering in ActiveReports 14?

I am implementing a .Net Core 3.1 REST API that needs to generate a PDF file for a given contract (the contract ID is known). I have adopted the following code

Visual studio 2022 crash on start debugging

Can anyone help me find why my visual studio 2022 crash everytime I start debugging? If I only run app it works fine. Also I have visual studio 2019 on the same

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

containing type does not implement interface 'IComponentConnector'

For some reason visual studio will not compile the below code. I am on .NET 6 WPF. Has there been any breaking changes that doesn't allow me to extend System.W

Create an expression dynamically to sort Linq to Entities ascending/descending based on a dynamically provided property name

Here is what I am trying to do. I have done a few simple expressions, but this one is a little too much for me right now. public static Expression<Func&l

Foreign key created in shadow and appending random 1 to column name - ASP:NET EF Core

When I migrate my new models and data I get the following error for multiple foreign keys: The foreign key property 'InsurancePolicy.InsuranceSubjectID1' was c

SAP Gui Scripting | .NET | Start transaction with parameters

I have the following script, which allows me to to control the SAP Gui with .NET (C#) SapROTWr.CSapROTWrapper sapROT = new SapROTWr.CSapROTWrapper(); object obj

Why does SonarCloud show that everything is fine?

I'm working on a c# .net6 project and I'm trying to integrate SonarCloud using GitHub Actions. I have a build and sonarcloud workflow that looks like this: name

Hovering over a DataGridViewComboBoxColumn in a WinForms app in Windows 11 turns cell black (OK in Windows 10)

When we run our application on Windows 11 the DataGridView control seems to act differently. Hovering over a cell in a DataGridViewComboBoxColumn turns the cell

How can I skip loop for first and last element of array and set them to constant value?

I would like the loop to start from the second element and to end before the last one. So that I can set the first and last one to constant value. for (int i =

How to autoincrement version number for a stand alone VB Class Library? (VS 2022, .NET 6)

I'm trying to design a REST API Service and Client that shares a common library (set of public classes that the Service and Client both reference). This common

how to make faster to foreach, search then update more than 100k data?

i have console app for background job. the app will do like this, get data from database for the location we can call table A(have 100k data) and place to varia

Where does .NET 6's System.Text.Json source generation store its code?

I have tried to implement Source Generation-based JSON serilization, based on MS Docs: How to use source generation in System.Text.Json. My code is as follows:

What does it mean when saying "passing in something" in the following?| ASP.NET Core

I was reading a book about Learning ASP.NET Core API when I run to a part saying: We call GetCommandByID on our repository passing in the Id from our route, st

Unzipping error - Unexpected end - Using ZipArchive

I got the following Code: Dim ms = New MemoryStream() CustomReportVorlage.ExportToPdf(ms) Dim bt2 = ms.ToArray() Dim outStream = New MemoryStream()

SAP B1 studio for ms visual studio 2019

How can install the SAP Business One Add-On Project template in Visual Studio 2019? I need to build a Add-On with C# but I don't know how to the templates or wi

DynamoDB ConditionalCheckFailedException - obtaining the item content that failed the test

I'm using precondition expressions on PutItem and UpdateItem requests. Is there a way to achieve either or both of the following: not throw an exception - this

Automapper with EnumMapping throws on nullable Enums with unknown value

I have a nullable enum property on the source side and get this property with value 0 instead of NULL. But 0 is not a represented value in the enum so AutoMappe