11,803 questions with Developer technologies | C# tags

Sort by: Updated
7 answers One of the answers was accepted by the question author.

scheduler tasks with security options “Run whether user is logged on or not”.

We use the package <package id="TaskScheduler" version="2.12.2" targetFramework="net48" /> This is the code with three actions and its behavior: || | -------- | Task || | -------- | GUI || | -------- | Manually run…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T14:32:57.9+00:00
YOFFE Mike 20 Reputation points
edited a comment 2026-03-05T15:04:02.57+00:00
MotoX80 37,341 Reputation points
1 answer

.NET MAUI Android – HttpRequestException (UnknownHostException) – Unable to resolve host intermittently in production

Hello, I am using .NET MAUI (Android) with HttpClient This issue occurs in different scenarios. For example, one scenario is: StartPage → SplashActivity → MainActivity → Home → Atlas → Notification → Home (Card_Click) → after a few minutes, a…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-23T08:32:25.06+00:00
nandu kathmandi 31 Reputation points
commented 2026-03-05T09:13:41.8133333+00:00
Nancy Vo (WICLOUD CORPORATION) 795 Reputation points Microsoft External Staff Moderator
1 answer

.NET MAUI Navigation Not Working on iOS 26.2 / 26.3

I am currently using .NET MAUI with .NET 8, and the application uses AppShell for navigation. The app works correctly on iOS version 26.0 and below. However, on iOS versions 26.2 and 26.3, the application hangs after login and does not navigate to the…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-03-04T13:56:24.9666667+00:00
Ranjit Kumar Barick 0 Reputation points
edited an answer 2026-03-05T07:27:39.3266667+00:00
Nancy Vo (WICLOUD CORPORATION) 795 Reputation points Microsoft External Staff Moderator
1 answer One of the answers was accepted by the question author.

Problems Connecting to Webservice Visual Studio 2026

Hello everyone and thanks for the help in advance. I am upgrading a project to VS 2026 that utilizes connected services but am running into problems. Here is the WSDL <?xml version="1.0" encoding="UTF-8"?> <definitions…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-03-03T23:17:33.7266667+00:00
Kmcnet 1,356 Reputation points
accepted 2026-03-04T19:38:17.4633333+00:00
Kmcnet 1,356 Reputation points
1 answer

Debug with Chat Visual Studio 2026

Hi, I see that in version of Visual Studio 2026, there is Debug with Chat. Where I can use it in all projects types? Only on C# languages? In unit tests it works? Can you give how does it works behind the scene to understand how to work with it? What…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-23T09:51:31.13+00:00
Pip 265 Reputation points
commented 2026-03-04T10:25:14.4266667+00:00
Varsha Dundigalla(INFOSYS LIMITED) 4,605 Reputation points Microsoft External Staff
2 answers

MSAL authentication_canceled exception in .NET MAUI even when using embedded webview

Hi, I am facing a recurring issue in a .NET MAUI Android application using MSAL 4.77.0 for Azure AD authentication. I am seeing frequent non-fatal exceptions in Crashlytics: Microsoft.Identity.Client.MsalClientException ErrorCode:…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-19T12:45:03.5+00:00
nandu kathmandi 31 Reputation points
commented 2026-03-04T09:03:36.0433333+00:00
Jack Dang (WICLOUD CORPORATION) 14,340 Reputation points Microsoft External Staff Moderator
2 answers

.NET SDK not installed

Screenshot 2026-02-11 220349.png I am developing an Avalonia application in VS Code and everything has worked just fine until last week, when I started getting this pop up. I have uninstalled, reinstalled, updated, repaired, and restarted numerous times…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-14T19:17:50.1033333+00:00
Patrick Loftis 0 Reputation points
commented 2026-03-03T09:17:03.6666667+00:00
Michael Le (WICLOUD CORPORATION) 11,075 Reputation points Microsoft External Staff Moderator
3 answers

How can I prompt the browser to save a password

How can I prompt the browser to save a password in my ASP MVC NET 10 web app that uses Cookies Authentication? I'm using Chrome Version 145.0.7632.110 (Official Build) (64-bit)

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-19T10:00:25.45+00:00
Dondon510 261 Reputation points
commented 2026-03-03T09:01:49.9+00:00
Michael Le (WICLOUD CORPORATION) 11,075 Reputation points Microsoft External Staff Moderator
1 answer

MSBuild: Routing IO from <Exec> to calling terminal

I have a basic PowerShell script which I want to run after publish to copy the output files along with a few config files from source into the right directories on my company's storage server, archive old versions, etc. I created a target in my .csproj…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-19T17:42:30.23+00:00
pgf 0 Reputation points
commented 2026-03-03T09:01:05.2566667+00:00
Michael Le (WICLOUD CORPORATION) 11,075 Reputation points Microsoft External Staff Moderator
1 answer

Deconstruct in C#

Hi, I'm using .NET 10 with Visual Studio 2026. Can you please explain this topic , how it used in many parts of C# languages? Thanks in advance, For example: public readonly struct Point { public int X { get; } public int Y { get; } public…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T18:49:16.65+00:00
Pip 265 Reputation points
edited a comment 2026-03-02T09:08:44.1166667+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

SharpCompress -Update from 0.445 to 0.46.3 produces error

Hi, I'm using class library of .NET 10. <TargetFrameworks>net10.0</TargetFrameworks> I update from 0.445 to 0.46.3 produces errors using (var archive = ArchiveFactory.Open(archivePath)) { var list = new List<string>(); …

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-27T13:35:13.9366667+00:00
Pip 265 Reputation points
accepted 2026-03-02T08:57:50.74+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

Async Await in C#

Hi, I'm using .NET 10 with VS 2026. Can you please cover the history of this topic , Async Await in C#, along the C# versions? Where can I used this topic ? What is the best practice for this topic? Thanks,

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T18:57:22.52+00:00
Pip 265 Reputation points
accepted 2026-03-02T08:43:18.7933333+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

Func<T> VS Action<T>

Hi , I'm using .NET 10 and Visual Studio 2026. Can you please tell me how to use both Func<T> and Action<T> ? When to use each one ? I see it very common used to pass it as a parameters to function. Can yo please demonstrate this usage and…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-27T05:30:58.0766667+00:00
Pip 265 Reputation points
accepted 2026-03-02T08:34:35.7833333+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

Record VS Class in C#

Hi, I'm using .NET 10 with Visual Studio 2026. Before you explain the difference between: Record VS Class in C#. Can you please why we need Record ? What is the syntax and use cases for it ? Thanks in advance,

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T19:07:25.5566667+00:00
Pip 265 Reputation points
accepted 2026-03-02T08:30:05.6933333+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

add-migration throws error File web.dll not found. The startup project is where DbContext is. Web is the asp.net core project

Greetings, Ladies and Guys! So finally I found a tutorial of Razor Pages C#, with jQuery AJAX. The solution has 3 projects: Web (asp.net core razor pages app, here goes the config, such as connection string and some services), Core (Model and…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-25T05:02:08.6833333+00:00
Pablo The Tiger 106 Reputation points
commented 2026-03-02T06:08:34.66+00:00
Jack Dang (WICLOUD CORPORATION) 14,340 Reputation points Microsoft External Staff Moderator
2 answers

How to use Tuple?

Hi, I'm using .Net 10. I would like to know what is the best practice of using Tuple? As far as I know, Tuple was changed during C# versions, can you please summarize the changes? Can you give sniped code how to use it , what are the options I have…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T18:39:42.5066667+00:00
Pip 265 Reputation points
edited a comment 2026-02-27T13:42:18.2266667+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

Switch Statement in C#

Hi, I'm using .NET 10 , VS 2026. The Switch Statement have changed over the C# versions. Can you please summarize how switch statement change over the C# versions ? Why switch statement input is only string ? How to use switch statement in .NET10 as…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T02:43:34.4266667+00:00
Pip 265 Reputation points
accepted 2026-02-27T06:56:25.3233333+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

Exceptions in C#

Hi, I'm using .NET 10 , VS 2026. I would like to know what is the best practice to use exceptions in methods and other places. And how to handle exceptions ? what are the options I can use? There are many kinds of exceptions, where are all the list of…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T03:12:48.79+00:00
Pip 265 Reputation points
accepted 2026-02-26T18:34:56.13+00:00
Pip 265 Reputation points
3 answers One of the answers was accepted by the question author.

Task in C#

Hi, I'm using .NET 10 in Visual studio 2026. I would like to know what is the best practice to work with tasks in C#. How to create them? How to make continuation? How to handle exceptions? How to handle timeout? How to cancel them ? Thanks,

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-26T03:26:48.1133333+00:00
Pip 265 Reputation points
commented 2026-02-26T18:32:28.3933333+00:00
Pip 265 Reputation points
2 answers One of the answers was accepted by the question author.

.Json file

Hi, I'm using C# 10 , VS 2026. What is the best practice to work with .json file ? I would like to know what is .json file , and all its options? What is the structure for each options? How can I read this .json file for each option? If file is not…

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,803 questions
asked 2026-02-25T09:06:56.8766667+00:00
Pip 265 Reputation points
accepted 2026-02-26T18:29:09.1233333+00:00
Pip 265 Reputation points