Category "c++sharp"

aerender from C# console Application

I'm trying to render an Adobe After Effects composition from a C# Console Application but it's not working. It doesn't even give any error, the code executes sm

How to set default values for a query param with array type in .Net.Core with Swashbuckle by code

I am currently working with .NET Core 3.1 and Swashbuckle library. I have made several endpoints with requests decorated with attributes and proper swagger desc

C#: Update List Item

public class person { public string name { get; set; } public string family { get; set; } } And I have a list of the same as Below: List<person&

Avalonia style selector doen't works on derived classes

I'm having an issue to style my custom control derived from button. I inherited the Button class to add a DependencyProperty to it: public class IconButton : Bu

How to call RedirectToAction in asynchronous Task methods?

I am using MVC aspnetcore dotnetcore 6.0 I do an authorization with a LoginController. When it is success i want to redirect the user into HomeController. But R

Xamarin.Forms : Error running program in debug mode after reinstalling Visual Studio 2019 v 16.11.11 preview 1.0

I had to reinstall Visual Studio 2019 after a Windows 10 crash. My program was developed under VS 2019 16.9.3, and the reinstalled version is 16.11.11 preview 1

.Net JsonSerializer does not serialize tuple's values

JSON serializer returns an empty JSON object. using System.Text.Json; (int, int) tuple1 = (1, 2); var token = JsonSerializer.Serialize(tuple1); // return empty

Closing the first form in C# to show the second, but after closing the second the first comes back

So far, this is the button click event to instantiate the other form of the button. It pops up the other form—but the first form is still in the backgroun

Visual Studio does not recognize a referenced assembly?

Opened an old project from years ago. Build fails because Visual Studio (2019) does not recognize an assembly that is clearly there - specifically, Autofac. You

How to get Line Count in MS Word?

I am using Word Interop to calculate the number of lines present in a Table Cell. The Cell in question is shown below (Special characters enabled for clarity).

Create A DLL to work on a solution targeting Master ARM64? (Hololens 2)

I develop applications targeting the Hololens 2 platform (mixed reality). The general idea of the application I am trying to build is using a point cloud regist

Slowmotion time limit

I made a player in my game, such that it goes into slow-motion when you hold down the space bar. But I want the player to only be available to be in slow-motion

SQL doesn't accept my minimum date from C#

I use the layer2 cloud connector to sync between Sharepoint DB (right) and SQL Server database (left). I sync from right to left only. I make a dynamic column o

Send files from flutter web to .net api

I'm trying to send files to .net api, but api response me {"mensaje":"startIndex cannot be larger than length of string. (Parameter 'startIndex')"} void _ha

Could not load file or assembly 'Microsoft.Data.SqlClient' in .NET 6

I have developed a WPF app on .NET 5 (CRUD operations with Entity Framework Core). MSI packages are built with Wix toolset. Up to here everything works. I am cu

Is there a way to get multiple parameters back from an interop call in nanoFramework

I am trying to get multiple parameters from a struct in a single interop call. The struct in question has the following signature: struct struct_name { uint

Not able to fetch all the AD user group (Missing Builtin/Guests) in c# using windows server 2016 as Active Directory

I have a user "Administrator" in my AD and added some of the user groups as a memberOf. I logged the windows with Administrator, then execute the code below cod

Character is jittering after adding falling function

Let me just preface my question by saying I'm quite new to unity and programming as a whole. However I've been experimenting with some movement and after adding

How to include externel user files into UWP side-loading package?

Say I use some .json files to descript some object data which effect to the program's behavior, I hope to use these files in the following scenarios The default

Call async inside public static bool

I wrote code about the settings page that uses static bool then I need to Check If the public static bool changed or not In the form that I needed to call (Form