Category "c++sharp"

.NET Maui: Vector/SVG splashscreen not correctly resized

Testing to add a custom splash screen for a Maui app, I read some Microsoft docs that says At build time, the splash screen image is resized to the correct si

intellij rider c# documentation english language

I just started with .net and Intellij Rider. I need to have spanish version of windows on my work laptop but I prefer to have everything related to code purely

Problems with user secrets in .Net console apps

I've created a .Net 6 console app. I added user secrets, but I only get the values defined in the appsettings.json file. I use Visual Studio Professional 2022 v

How do you create a component that allows the consumer to extend the interfaces for parameter inputs?

This may be a dumb question, but my search so far has come up short and I worry I might have too specific of a use case to find a clear answer anywhere else. I

How to register services with dependency container services by reflection in c#

I have an interface IProcessor and multiple processors implementing this interface: Processor1 : IProcessor Processor2 : IProcessor I want to inject these proc

Signalr Core WithAutomaticReconnect passing headers

I have gone through Signalr Core documenations and while I understand the feature .WithAutomaticReconnect() What I am curious is does it pass the headers still

Is there a way to Marshal a byte[] into a string without copying in C#?

I am in the process of building a sub-part of a native application, namely a Unity application that runs as a child of a different application written in a comp

How to silence Serilog in integration tests with the new minimal hosting model of .NET 6

I have a .NET 6 web API project with existing integration tests for some of the API endpoints. The project uses Serilog for logging and everything was fine so f

VS 2022 debugging: Sometimes works, sometimes get "breakpoint cannot currently be hit, no symbols loaded..."

I have a .Net web project that I publish and then attach VS to w3wp.exe for debugging. I place breakpoints, load the specific web page being modified, and debu

How to find string's left , right, middle side in C#

I want to divide my NameSurname variable to take name and surname seperately. How can I use left, right methods for this? public ActionResult SearchPerson(strin

problems running vssadmin from c#

I am executing the following code from C# Process process = new Process { StartInfo = new ProcessStartInfo("cmd.exe", "/c vssadmin resize sh

Change colour of date picker in Android with possibility to have custom Splash screen as well

I am working on a project where I would like to have custom splash screen, however I would also like to have dark styled Android dialogs, that are corresponding

How to host ASP.NET C# page using Word object in a server which do not have MS Office?

When I try to create an instance of a COM class, it throws this exception: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) I h

Microsoft.Office.Interop.Word in .NET 6.0 - Change builtin document property

Using the Microsoft.Office.Interop.Word.Document interface in C# you can get/set the document's built-in properties (Author, Title, Subject, Creation date,...)

c# - Get TLS/SSL certificate from Azure App Serivce

I need help. I have the following code in C# and I need to get the expiration date of the TLS certificate of an App Serivce. I am obtaining the token without an

Razor components - cascading parameter values

How do you pass a reference to the parent RenderingFragment to the child component/content when creating a razor component in c# (NOT using .razor) ComponentBas

Issues with playfab leaderboard

Im having issues with PlayFab, What im trying to do is have the wave number recorded and sent off to the leaderboard when the game is over but I dont know how t

List nested folders in Google Cloud Storage Bucket in C#

Whats the best way to list nested folders in Google-Cloud-Storage bucket. I have a bucket in which first the year folder then months and days folder respectivel

Setting MauiSplashScreen tag on MyMauiProject.csproj with a mp4 file throw null exception from Resizetizer/SkiaSharpBitmapTools, looks hardcoded trash

Setting the MauiSplashScreen tag inside my net6.0 MyMauiProject.csproj pointing to a mp4 file makes it throw a null exception from Resizetizer/SkiaSharpBitmapTo

How to apply margin in Presentation Document using OpenXml

I wrote code to create Presentation Document using open-xml SDK. I follow this sample code. MSDD Sample Code. Now i need to apply margin before starting my text