25,059 questions with .NET-related tags

Sort by: Updated
1 answer

How long has the player tapped on the iOS/Android display screen? How can I measure the time?

In my game the player needs to tap on the iOS/Android display screen to make a gameplay action. I want to find out how long the player pressed his finger against the display screen. For example, if the player pressed his finger 1 second on the screen…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,894 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-22T14:08:15.7066667+00:00
Kim Strasser 896 Reputation points
commented 2024-07-29T09:05:04.67+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,456 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Create .docx file

Hi, How to create one .docx file using C sharp?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,327 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,656 questions
asked 2021-10-06T09:12:27.637+00:00
Peter_1985 2,586 Reputation points
commented 2024-07-29T08:45:14.3766667+00:00
winironteam 36 Reputation points
0 answers

MAUI .NET 8 iOS - Method not found: SkiaSharp.SKMatrix SkiaSharp.SKMatrix.MakeTranslation(single,single)

I have created a new MAUI .NET 8 project and migrated the Xamarin forms project code. I am facing an exception as below when loading the SVG image, Unhandled Exception: System.MissingMethodException: Method not found: SkiaSharp.SKMatrix…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-27T10:06:34.74+00:00
Aneetha 65 Reputation points
commented 2024-07-29T08:19:10.6+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,456 Reputation points Microsoft Vendor
0 answers

Error APPX1101: [UWP] Payload contains two or more files with the same destination path: Microsoft.Web.WebView2.Core.dll

I tried to open AAD signin within the window application using the embedded browser, but I'm getting an error saying that to enable the embedded WebView on Windows, install Microsoft.Identity.Client.Desktop.  Installed Microsoft.Identity.Client.Desktop…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-29T08:09:30.9466667+00:00
Ravi Khandale 5 Reputation points
0 answers

Microsoft.AspNet.OData NuGet Package Upgrade Causing delay in the Functionality

Hi, I have upgraded Microsoft.AspNet.OData NuGet Package in our application from 7.5.14 to 7.7.5 and since then it is causing delay in few of the Api calls in the application. Before upgrade everything works fine without causing any delay. The scenario…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,418 questions
asked 2024-06-18T07:10:11.82+00:00
AKHIL TALLURI 0 Reputation points
commented 2024-07-29T07:50:53.7333333+00:00
AKHIL TALLURI 0 Reputation points
1 answer

Sharing Authentication Cookies in ASP.NET Upgrade Scenarios Migrating ASP.NET to ASP.NETCore

I have web application in .net framework 4.7.2. Now I am upgrading it to .net core 6. I want to share user authentication from old app to new .net core 6 app. But I am not able to access claims data in new .net core 6 upgraded application using…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
asked 2024-07-25T11:34:43.9+00:00
Darshan S 0 Reputation points
edited a comment 2024-07-29T07:48:02.59+00:00
Darshan S 0 Reputation points
0 answers

App crach in maui net 8

Hi, Here are details:

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-29T07:32:08.96+00:00
Dani_S 3,336 Reputation points
edited the question 2024-07-29T07:32:41.91+00:00
Dani_S 3,336 Reputation points
1 answer

Troubleshooting Issues with .NET Project Packages

I am encountering errors with all my packages in my .NET project, even after trying to restore NuGet and clearing the cache. Can anyone provide guidance on troubleshooting and resolving this issue? Thank you.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 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,656 questions
asked 2024-07-27T08:45:53.02+00:00
merna elzyat 0 Reputation points
edited an answer 2024-07-29T07:31:24.2733333+00:00
Ping Ni-MSFT 3,615 Reputation points Microsoft Vendor
2 answers

System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Int32'.

public async Task UpdateEmployeeAsync(int id, Employee model) { var employeee = await _appDbContext.Employees.FindAsync(id); if (employeee == null) { throw new Exception("Employee not found"); } employeee.Name =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
asked 2024-07-28T08:01:00.3233333+00:00
hammad tahir 0 Reputation points
answered 2024-07-29T07:18:52.22+00:00
Brando Zhang-MSFT 3,446 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Media file picker features in .NET MAUI like in Xamarin Forms

Hi, Is there any way to compress the image and remove the metadata option for the media picker in MAUI like it had in the below package? https://github.com/jamesmontemagno/MediaPlugin

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-15T08:47:32.7+00:00
Chinmay Dole 140 Reputation points
commented 2024-07-29T07:14:23.5533333+00:00
Sgt David A Tartaglia 0 Reputation points
1 answer

Tabbed Pages inside Flyout Page in Maui

I have an application with Maui .NET 8. I want to show tabbed pages and based on the page from the tabbed page selected I want to show the title to the Flyout page. How can I achieve this?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-29T03:48:44.6766667+00:00
Chinmay Dole 140 Reputation points
edited an answer 2024-07-29T07:08:16.6566667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,336 Reputation points Microsoft Vendor
2 answers

Item Template Not Using Data Context

Here is code for WPF window (omitting irrelevant…

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,716 questions
asked 2024-07-27T22:51:49.1966667+00:00
RogerSchlueter-7899 1,256 Reputation points
answered 2024-07-29T06:52:46.88+00:00
Hui Liu-MSFT 47,421 Reputation points Microsoft Vendor
1 answer

Unnessary folders after pulish in windows

Hi, Which folder are no need after publish : dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true /p:PackageCertificateThumbprint="c01ba45666762f3615cf6813aeb4dc4b1919541d"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-17T08:51:34.1133333+00:00
Dani_S 3,336 Reputation points
commented 2024-07-29T06:51:05.55+00:00
Dani_S 3,336 Reputation points
1 answer

Cannot switch from one tabbed page to other tabbed page, NotSupportedExceptionUnable to find the default constructor on type Microsoft.Maui.Controls.Platform.FragmentContainer.Please provide the missing constructor.

Hi In my project the Main page is a tabbedpage and when we switch from the main page to another page which is also a tabbed page we are seeing System.NotSupportedException: 'Unable to find the default constructor on type…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-19T13:57:05.1266667+00:00
dedeepya yarlagadda 45 Reputation points
commented 2024-07-29T06:47:53.16+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,456 Reputation points Microsoft Vendor
2 answers

Send email from a .Net Framework Winforms application and service using Microsoft accounts.

Hello. We provide a .Net Framework Winforms application with a service. Both share code which allows our customers to send email from their own email accounts, currently using MailKit, although we could use another client if necessary. Where they want…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,875 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,654 questions
Microsoft Entra
asked 2024-06-28T11:56:45.4266667+00:00
Fortecho Solutions Ltd 0 Reputation points
commented 2024-07-29T06:46:55.3833333+00:00
Raja Pothuraju 2,020 Reputation points Microsoft Vendor
1 answer

Toggle Speakerphone using Button UI on Android 13

There are many posts that show how to activate a speakerphone for Android 10. Those methods fail to work on Android 12 and higher. This question was posted on the Xamarin Community without a resolution. Does .Net MAUI have a solution.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
asked 2024-07-29T03:14:20.6666667+00:00
Peace Man 1 Reputation point
answered 2024-07-29T06:41:37.07+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,396 Reputation points Microsoft Vendor
0 answers

How to put Ads Banner in Windows App via NET MAUI?

Hi all, have a good day! I'm using NET MAUI to build app. How to put ads banner in Windows app? Thank you!.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,240 questions
Microsoft Advertising
Microsoft Advertising
A platform for Microsoft's advertising efforts designed to manage all advertising and reporting for partner advertisers. Previously known as Bing Ads and adCenter.
63 questions
asked 2024-07-28T08:09:57.4133333+00:00
Liem Nguyen 51 Reputation points
commented 2024-07-29T06:41:08.88+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,396 Reputation points Microsoft Vendor
0 answers

how .net core dll used in mac or linux

how .net core dll runs in mac or linux

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
asked 2024-07-29T04:18:15.52+00:00
Sanjeeb Sarkar 0 Reputation points
commented 2024-07-29T06:39:19.16+00:00
JasonPan - MSFT 4,811 Reputation points Microsoft Vendor
0 answers

Deploying from GitHub Actions suddenly stopped working - now my webApp is "running and waiting for yout content"

I have a long running ASP.NET Core 8 web app that have been running for 6 months without problems. Now it is not working the temp url shows the message: "Your web app is running and waiting for your content" My GitHub action builds and deploys…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,408 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,414 questions
asked 2024-07-28T10:22:37.7333333+00:00
BrianDev - Median DK 0 Reputation points
edited a comment 2024-07-29T06:31:55.6533333+00:00
JasonPan - MSFT 4,811 Reputation points Microsoft Vendor
0 answers

Item Template Not Using Data Context

Here is code for WPF window (omitting irrelevant…

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,716 questions
asked 2024-07-27T22:55:00.58+00:00
RogerSchlueter-7899 1,256 Reputation points
commented 2024-07-29T06:30:48.0333333+00:00
Hui Liu-MSFT 47,421 Reputation points Microsoft Vendor