Category "c++sharp"

c# Get name of variable(s) during object deconstruction

Given this code: var (c, d) = new Test(); This it possible to get the variables names from the Deconstruct method? public class Test { public void Decon

IBMMQDotnetClient vs IBMXMSDotnetClient

I am working on a project, which needs to connect to IBM MQ using c#, and considering which NuGet package is the best one. However, there are 2 NuGet packages I

How to customize all response in .Net Core?

Im using .Net Core to write a json api server, so I need customize all response to like: public class Result { public int Code { get; set; } public stri

Get windows 10 default like icons

I'm currently building a wpf application and am looking for a "generic" looking set of icons like they are used in windows explorer, they can be something betwe

Kendo UI datepicker incompatible with Chrome 56

After updating Chrome to version 56.0.2924.76 (64-bit), our Kendo datepickers stopped working. All datepickers were bound using ViewModels, and now they don't s

Reload Serilog JSON Configuration on changes in .NET Core 2.1

I'm currently working on a ASP.NET Core 2.1 application and I use Serilog for logging. I want to reload the application settings file for my Serilog implementat

gRPC with C# - "2 UNKNOWN: Stream remove"

I have created very simple gRPC server. It's a template project from Microsoft. csproj <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup&

How to set the base path or the ApplicationPath for ASP.NET MVC application

I have an ASP.NET MVC web application which I want to put behind NGINX reverse proxy. Currently the web application is served from the domain's root, i.e., http

Access private appointments in a shared calendar from Outlook add-in

I develop an Outlook VSTO add-in in C#. I need to read existing appointments from shared calendars to see busy time slots. I have the publishing editor permissi

Kestrel error: address already in use (dotnet core)

Summary: it works as dotnet run, but it doesn't work as dotnet myappname.dll. My linux skills are limited, but I am trying to go by the book so I don't mix thi

How do I clone existed complicated rows to the work sheet using openxml

I need to clone exists rows to the work sheet dynamically. ex. I wanna copy row 28, 29 and insert into 30, 31, or 32,33, or more maybe, it depends on the data r

Textbox text disappears when transparency turned on and control loses focus

I have researched creating a custom winforms Textbox that allows a transparent background. I read the StackOverflow post: Link to post. In that post dkiefer

Setting connection string with username and password in ASP.Core MVC

I am working on my first ASP.NET Core MVC application.What is the right way to specify the connection string in a ASP.NET Core MVC application with a sql server

Getting contacts from Exchange instead of Outlook

I am currently developing an application to be used internally only at work. I need to get the currently logged in user's contacts to use in the application and

Making database mdf work across different computers

I know this is kind of a stupid question but it gives me a lot of problems. Me and my partners in college projects have a lot of issues making the database mdf

PowerBI - getting EmbedToken - Unauthorized

I have been trying WITH NO LUCK, to get an embed token to be able to embed my powerbi reports into my existing .netcore web api application. The front end look

deploy solidity contract with c#

I am developing an application on Ethereum blockchain. I use Solidity for contract and Nethereum c# library to connect to the contract. I am somehow new in Ethe

How to correctly inherit Unity's callback functions like Awake(), Start() and Update and FixedUpdate()?

I've created a parent class that I expect to have all functions related to testing if the GameObject is grounded, in water, on air, etc... given that this funct

PDF Form no longer editable after partly filled

I'm facing a problem with a Web API I have that receives a PDF document (PDF form) as a base64 encoded string, makes it into a file, fills in some of the fields

Can I determine the .NET SDK version used when building from a .csproj or .targets file?

This is mainly to try to work around an annoying coupling of the .Net analyzers to the version of Visual Studio that the .NET SDK version has an affinity to. If