How to Send email using Micorsoft Graph API & OAuth2 in C#
Requirements 1) Our company needs to send notification emails to customers using MS Exchange mail service. The task needs to be automated using a c# program in Azure or from local machine. 2) Use share mailbox to save on license cost. It will be…
Developer technologies | C#
C# SerialPort.Open hangs up for a long time when the serial port is not in correct status
Hello, I have a WPF application on Win10 which will select and open a serial port. I already know the serial port is in a status which can be listed but can not communicate normally. I try to open it use SerialPort.Open(), but the thread will just hang…
Developer technologies | C#
Microsoft.CodeAnalysis.NetAnalyzers not doing anything at all
So I switched from using the fxcop nuget to the new Microsoft.CodeAnalysis.NetAnalyzers NuGet and it does nothing at all. I added the following to my csproj file expecting it to apply all rules but nothing happens when i build. I uploaded an example…
Developer technologies | C#
How to automatically redirect to next page after progress bar finish loading
How can I create a progress bar that will be loading, and after it finishes loading, it will automatically redirect to next page after 10 seconds? Here is what I tried, although what I've been able to get is a button such that when the button is clicked,…
Developer technologies | C#
What is Best Practice for Passing a complex viewmodel from a View to the controller?
I have a view form with a complex VM, and it allows the end user to see dozens of data items in various text boxes (as many as 40). At some point, the user will want to update one or more of the textbox data points, so when the model is modified in the…
Developer technologies | C#
Issue to show the error
Hi, For the code like is not able to show the error for the file. Any issue?
Developer technologies | C#
Issue to scan the file
Hi, It is not scanning all of the lines of the file using the codes below on VS 2026. Anything wrong? try { string[] fileEntries = Directory.GetFiles(directoryPath); foreach (string fileName in fileEntries) …
Developer technologies | C#
Why the class library has different supports for framework and .NET?
Hi, I looked on evolution of class library. It used for reused. As I see the class library has different supports for Framework and .NET. Can you please explain it in more details , what are the option and what is roadmap for future ? Every NuGet…
Developer technologies | C#
Change the app icon based on the light/dark mode
In a .NET 9 MAUI application, I would like to change the app icon based on light or dark mode, based on the system. The icon of the application is an SVG image with a transparent background. Is there any example of documentation how to implement it?
Developer technologies | C#
Bug -Move SharpCompress from 0.42.0 to 0.44.5 failed
Hi, I'm using Console App in .NET 10 reference to class library :netstandard2.1 as follow: <Project Sdk="Microsoft.NET.Sdk"> **<PropertyGroup>** **<TargetFramework>netstandard2.1</TargetFramework>** Before: After:…
Developer technologies | C#
what is the best practice to change the element of IEnuerable?
I have IEnumerable<XY> and how to change all the elements in it? class XY { public int X{get;set;} public int Y{get;set;} } what I want is to adding 1 of the X I have to change it to array ? var arr=xys.ToArray(); for(int…
Developer technologies | C#
MemoryStream issue
Hi, Any better way to add the following to this?
Developer technologies | C#
What are the differences between GeoJson, ndjson, topojson, jsonl, GeoJsonSeq ?
Hi, GeoJson, ndjson, topojson, jsonl, GeoJsonSeq they are all json but have different structure! 1.Can you please give for each extension a C# function code to check it ? 2.Can you please give a sample data for each format: simple and complex…
Developer technologies | C#
How to detect .ndJson
Hi, NDJSON (usually written as .ndjson) stands for Newline-Delimited JSON. instead of one big JSON array, you have one JSON object per line. How to detect .ndJson file ? This my code. Thanks in advance,
Developer technologies | C#
Which files to add for a .msix pacakger i need it in unity game packaged
I have HYPERNOVABACKROOMSs.exe is data folder needed and by the way my cooperation name is called NORVEX TECHNOLOGY GROUP but msix packager doesnt allow spaces can you please support me and msix packager says no folders what to do? and appxmanifest…
Developer technologies | C#
Sample for SOLID EDGE, AutoCAD, Katya to convert to STEP.
Hi, Regarding your suggestion, I found a third-party CAD kernel or SDK vendor. Where I can find samples for as input file to convert to STEP(STEP as in the universal file format) from: SOLID EDGE AutoCAD Katya Thanks in advance,
Developer technologies | C#
Issue of Swagger, Postman
Hi, Further to https://learn.microsoft.com/en-us/answers/questions/5750852/issue-to-the-deployed-app How to check and ensure Swagger, Postman is functioning well? On the client, how to trigger that Swagger, Postman of the server?
Developer technologies | C#
STEP as in the universal file format
Hi, I'm exploring STEP as in the universal file format. I want to build Console App in .NET 10 on Windows , that convert from different CAD/CAM/CAE software for to STEP. What Microsoft or or other Tools can advise? Thanks in advance, This what Chat GPT…
Developer technologies | C#
Could not load file or assembly ‘Microsoft.Data.Sqlite, Version=9.0.6.0 in .NET 10
Hi, I have Console App I .NET 10 that reference to netstandard2.1: This is the csproj: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType>…
Developer technologies | C#
OpenAPI issue
Hi, Can you help it below? How to fix it? Originally I was with this error "The type or namespace name 'OpenApi' does not exist in the namespace 'Microsoft.AspNetCore' (are you missing an assembly reference?)"