23,891 questions with .NET-related tags

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

what is the most current Windows platform for .NET and C#

I see on the internet that MS has deprecated UWP. What do I need to add to my Visual Studio 2022 Community edition in order to program using the latest flavor of Windows for general Windows Apps? I'm getting frustrated trying to discern the myriad…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,607 questions
C#
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.
10,249 questions
asked 2024-04-24T14:20:14.18+00:00
Joe Babb 60 Reputation points
commented 2024-04-25T11:42:07.5866667+00:00
Joe Babb 60 Reputation points
2 answers One of the answers was accepted by the question author.

what capability must I add to my manifest to enable access to audio devices?

I am working with Visual Studio 2022 Community edition. Years ago I wrote a program in Win32 that opened an audio device and plotted the signal on the screen. I want to do that same function but now with .NET. When I do a var endpointId =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
asked 2024-04-23T12:43:43.2+00:00
Joe Babb 60 Reputation points
accepted 2024-04-25T11:39:02.61+00:00
Joe Babb 60 Reputation points
3 answers One of the answers was accepted by the question author.

Unable to submitting the form using jquery post request like a form submit

Using Form Submit redirecting page from one page to another page and the page is redirecting successfully but the parameter value getting length 0(if array) or null(if string) based on the data passed on param. To achieve this concept I have used the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 questions
asked 2024-04-24T11:36:47.15+00:00
Ashok Kumar 161 Reputation points
commented 2024-04-25T11:11:52.8333333+00:00
Ashok Kumar 161 Reputation points
0 answers

CTRL Commands Not Working with Winforms Web Browser

Hello, We have an application with a winforms web browser hosted on a WPF window and this browser is used to load HTML's within our application. These HTML files have fields that allow users to fill out. Letters and numbers work fine when put into the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
asked 2024-04-22T20:38:22.62+00:00
Lpatz-4663 20 Reputation points
commented 2024-04-25T09:40:48.23+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
0 answers

[MAUI] How to set the icon of a new window in MAUI? Including Android and Windows platforms

I need to open a new window on my Android device and set its icon, similar to a WeChat mini program, but I haven't seen any API documentation related to it in the official documentation that allows me to set its icon, so I want to ask if this is possible…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-18T01:43:45.9833333+00:00
studio XFE 5 Reputation points
commented 2024-04-25T09:35:37.4+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,651 Reputation points Microsoft Vendor
1 answer

While enabling the .net framework form control panel getting an error, .net is the prerequisite for interspec application, we are unable to perform the installation

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2024-04-22T15:08:19.31+00:00
THUMMALURU RAJESH REDDY 0 Reputation points
commented 2024-04-25T09:17:19.6366667+00:00
Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
0 answers

Is it normal that the publishing of my NET MAUI app on iOS never ends?

Hello everyone, I am actually trying to do an ad-hoc deploy on iOS, of my .NET MAUI app. But for some reason it don't work. I've followed every step from there…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-23T11:41:03.2766667+00:00
Cyril Auquier 0 Reputation points
commented 2024-04-25T09:07:50.61+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
1 answer

.NET MAUI Application is not supported on Visual Studio Mac

When I tried to run the MAUI project on Visual Studio Community 2022 for Mac, I faced the error below. Error: Could not find any available provisioning profiles for ApplicationName on iOS. I fixed the above error by deleting the .vs, obj, and bin folders…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,607 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-20T11:26:10.47+00:00
Aleena George 20 Reputation points
commented 2024-04-25T08:46:28.84+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

how to change the sdk and emulator path?

the android sdk and emulator is all in C:\\ how to change the path? one of the emulator path is C:\Users\ljzj\.android\avd\pixel_5_-_api_30.avd how to change it to other path

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-19T13:11:37.76+00:00
mc 3,681 Reputation points
accepted 2024-04-25T08:37:55.4766667+00:00
mc 3,681 Reputation points
0 answers

how to export function in dll to aot?

I created .net class library to build dll and want to publish native aot and I write function public static MyClass { public static int MyFun(int n) { return n*n; } } I publish it to native aot to win-x64 but in dll there is no function why?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
C#
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.
10,249 questions
asked 2024-04-23T02:04:43.3933333+00:00
mc 3,681 Reputation points
commented 2024-04-25T08:37:49.9433333+00:00
mc 3,681 Reputation points
1 answer

How to validate textbox with empty field in wpf forms

Hi Team I have these two fields i want to validate, does anyone knows how to achieve this in wpf on the forms? The bottom seal and TopSeal fields, if empty it must prompt a window dialog message.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,829 questions
asked 2024-04-24T11:21:49.9533333+00:00
Gcobani Mkontwana 0 Reputation points
edited an answer 2024-04-25T08:20:59.51+00:00
Hui Liu-MSFT 38,251 Reputation points Microsoft Vendor
1 answer

Fullscreen on Mac

I made it fullscreem for Windows. .ConfigureLifecycleEvents(events => { #if WINDOWS events.AddWindows(windows => windows .OnWindowCreated((window) => { …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-24T14:23:22.0966667+00:00
Eduardo Gomez Romero 205 Reputation points
answered 2024-04-25T07:27:50.6466667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,336 Reputation points Microsoft Vendor
1 answer

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 questions
C#
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.
10,249 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,366 Reputation points
edited the question 2024-04-25T06:42:47.42+00:00
Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
1 answer

Blazor web app net 8 rendermode auto with API

I am creating a web application with blazor web app and net 8 with rendermode Auto. I have an api created in .net hosted on another server different from where the blazor web application will go. The api needs a token in each call, I am having problems…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,391 questions
asked 2024-04-24T15:40:36.8+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
edited a comment 2024-04-25T05:50:40.6966667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer

How to restore direct dependencies packages only by 'restore --packages' command

I want to restore a .NET project's packages by command line dotnet restore --package. The behavior like this in dotnet restore doc: Package Restore first installs the direct dependencies of a project as needed, then installs any dependencies of those…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
C#
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.
10,249 questions
asked 2024-04-24T03:50:34.2266667+00:00
Charlie Xie 0 Reputation points
edited an answer 2024-04-25T05:07:57.15+00:00
Robert J. Foley 0 Reputation points
1 answer

Format of the initialization string does not conform to specification starting at index

I am using .net android(not maui) and ef core and sqlite. but there is error Format of the initialization string does not conform to specification starting at index how to use sqlite in .net android?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-22T10:36:01.19+00:00
mc 3,681 Reputation points
commented 2024-04-25T03:02:40.3933333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
0 answers

How to create a custom keyboard in Xamarin?

Hello, What is the process for designing a custom number pad in Xamarin forms to be displayed in certain fields, while others still use the native Android keyboard for input? I'd like to avoid using axml as I am not familiar with it, and the default…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
C#
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.
10,249 questions
asked 2024-04-19T04:40:16.8166667+00:00
Immanuel D 0 Reputation points
commented 2024-04-25T01:54:18.1266667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
1 answer

Xamarin Cross-Platform MSAL Authentication: Invalid keystore format

I followed this guide "https://damienaicheh.github.io/azure/xamarin/xamarin.forms/2019/07/01/sign-in-with-microsoft-account-with-xamarin-en.html" for setting up authentication for Xamarin android and ios msal. Everything seemed to going fine…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
asked 2024-04-18T01:27:01.74+00:00
Craig 0 Reputation points
commented 2024-04-25T01:53:56.1433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
1 answer

How can I programmatically simulate a button click in a MAUI application?

How can I programmatically simulate a button click in a MAUI application?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,869 questions
asked 2024-04-19T10:30:11.5766667+00:00
Sarfaraz Sable 20 Reputation points
commented 2024-04-25T01:15:48.2+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,546 Reputation points Microsoft Vendor
0 answers

Adding Token Based Azure EntraID Authentication to GraphQL APIs created on .NET7

I have a set of GraphQL APIs created on .NET7. I want to authenticate the APIs using Azure Entra ID User/App Access Tokens. Is it possible to achieve the same out of the box, else kindly suggest a workaround.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,474 questions
asked 2024-04-24T10:05:50.0733333+00:00
Varun Sridhar 0 Reputation points
edited the question 2024-04-25T01:14:24.4533333+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor