24,358 questions with .NET-related tags

Sort by: Updated
1 answer

Mac cursor on button

Hi, In window I did this code and is not working on MAC. How do i fix it ? Thanks, Microsoft.Maui.Handlers.ButtonHandler.Mapper.AppendToMapping("Custom", (handler, view) => { #if WINDOWS using Microsoft.UI.Input; using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-05-30T10:34:02.6266667+00:00
Dani_S 2,906 Reputation points
commented 2024-06-02T10:37:05.5366667+00:00
Dani_S 2,906 Reputation points
1 answer

removable drive seen in debbugger although i filter it.

hi, i used this code and i see removable drive in debugger, why? I used mac. DriveInfo[] drives = DriveInfo.GetDrives(); drives = drives.Where(drive=> drive.DriveType != DriveType.Removable && drive.DriveType !=…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-05-30T11:56:43.41+00:00
Dani_S 2,906 Reputation points
edited a comment 2024-06-02T10:32:51.8566667+00:00
Dani_S 2,906 Reputation points
0 answers

Search bar corrupted in MAC

Hi, In windos it works but in MAC is corrupted, why? <HorizontalStackLayout Grid.Row="1" Grid.Column="0" Margin="10,10,0,5" HorizontalOptions="Start"> <SearchBar x:Name="searchBar"…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-06-02T09:47:40.4066667+00:00
Dani_S 2,906 Reputation points
1 answer

Helper folders in MAC

Hi, I need for my app in mac some helpers folders to : 1.for log file 2.for dwnload files .... where to put them ? I nee absoulth path for them to read from code of mac app. Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-05-30T11:52:15.06+00:00
Dani_S 2,906 Reputation points
commented 2024-06-02T08:38:52.9666667+00:00
Dani_S 2,906 Reputation points
1 answer

Save xml log file in MAC

Hi, In windows I keep in c drive in MAC where i save my log file? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-05-29T10:31:16.86+00:00
Dani_S 2,906 Reputation points
edited a comment 2024-06-02T07:29:08.4266667+00:00
Dani_S 2,906 Reputation points
1 answer One of the answers was accepted by the question author.

Running app on mac - menu corrupted

Hi, Please run the app from: https://github.com/dotnet/maui/issues/22719 the menu corrpted when switching between pages and when maximize the page. Thank in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-05-29T15:02:22.02+00:00
Dani_S 2,906 Reputation points
accepted 2024-06-02T07:06:58.92+00:00
Dani_S 2,906 Reputation points
0 answers

Register close button in mac

Hi, In window i did, how to do it in mac ? builder .UseMauiApp<App>() .ConfigureLifecycleEvents(events => { #if WINDOWS events.AddWindows(windowsLifecycleBuilder…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-06-02T07:04:04.6633333+00:00
Dani_S 2,906 Reputation points
3 answers

How to insert new,update, delete existing record in single row of gridview

I am developing ASP.NET application and i am using gridview in that. Here, i am not using any textbox controls outside of the gridview to save the record. everything i want to maintain in same row of the records. for example, when page load, if any…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,422 questions
asked 2024-05-28T14:36:20.12+00:00
Gani_tpt 1,806 Reputation points
commented 2024-06-02T04:26:19.75+00:00
Gani_tpt 1,806 Reputation points
0 answers

How do I store a negative TimeSpan in Entity Framework?

Hi all; I store shifts to events with a TimeSpan as the offset from the start of the event and another TimeSpan as the duration of the shift. The setup shift starts before the event (so everyone see the event as 11:00am - 4:00pm as desired while the…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
asked 2024-06-02T02:42:02.63+00:00
David Thielen 2,376 Reputation points
3 answers

ResetPassword in .net core web api

Hi, I'm currently working on a .NET core web API project and writing ResetPassword. The user wrote the email and front-end sent it to my ForgotPassword Endpoint, I checked the database and send the url with email and token in it to the user's email. This…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 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,422 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
309 questions
asked 2024-05-31T18:45:26.5333333+00:00
Atilla Rüstəmli 0 Reputation points
edited a comment 2024-06-02T02:28:36.2466667+00:00
Bruce (SqlWork.com) 58,356 Reputation points
2 answers

Prepare code to fetch data from mock server does not seem to work

Hi! I am working through this Exercise: https://learn.microsoft.com/en-us/training/modules/build-web-api-minimal-spa/5-exercise-create-api. After starting the Mock Server (I can see in the Browser that it is running) The Website has the error: Unexpected…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
11 questions
asked 2024-05-28T19:02:39.45+00:00
Frank Geisler 16 Reputation points MVP
edited an answer 2024-06-02T01:25:02.5733333+00:00
Pradeep M 805 Reputation points Microsoft Vendor
0 answers

Since updating to VS 17.10.1 deployment to ios device never completes

Since updating to VS 17.10.1 when I try to deploy to ios devices (iPhone, iPad) the deployment never completes. I have tried with 4 projects that previously were successfully deployed to iPhone & iPad devices.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-06-02T01:00:20.12+00:00
Christopher Jahn 0 Reputation points
0 answers

Unable to create a DbContext' Error when Using EF Core in .NET 8 ClassLibrary Project

Hello everyone, I've developed a ClassLibrary project using .NET 8 and C#, and I've utilized EF Core 8 in it. I've defined my own models and context within it. However, when I attempt to use the add-migration command, I encounter this error: "Unable…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
asked 2024-06-01T01:35:11.9766667+00:00
Kamyab Faghih 0 Reputation points
commented 2024-06-01T20:48:52.3366667+00:00
AgaveJoe 26,251 Reputation points
0 answers

Publish App Error

I am seeing the following error when I create any .NET Maui app and try to "Reserve a new app name:"

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-06-01T20:24:36.23+00:00
Fritz Switzer 261 Reputation points
5 answers

Why does Blazor server app takes away memory while being inactive?

We developed a Blazor server app and is going through testing phase. Our clients have some concern. What we notice is that before the app is launched memory is 4784 K, one the app is launched and at the end of rendering the login page it is already over…

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,435 questions
asked 2023-02-07T13:44:18.7166667+00:00
Balu Raju 81 Reputation points
commented 2024-06-01T20:18:18.9233333+00:00
Bruce (SqlWork.com) 58,356 Reputation points
1 answer

Asp.net core 8 , IIS and Video Streaming, Low level

Hello All, Have simple sample web api application, coded in .net core 8, deployed on kestrel and IIS, a typical scenario. I have created one end point that streams local video file. File is about 400 MB and approx. 4 mins in length. Below code works. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 questions
asked 2024-05-31T23:24:02.0133333+00:00
Kishor Pise 1 Reputation point
edited a comment 2024-06-01T18:24:26.75+00:00
Bruce (SqlWork.com) 58,356 Reputation points
2 answers

Blazor not found in Visual studio,blazor .net framwork template not found

Blazor template is being not found in visual studio This question is related to the following Learning Module

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,435 questions
asked 2024-06-01T05:47:32.92+00:00
SRIHARI MADDINENI 0 Reputation points
edited an answer 2024-06-01T16:26:13.7633333+00:00
Bruce (SqlWork.com) 58,356 Reputation points
1 answer One of the answers was accepted by the question author.

How can I set the application file description in .NET 8?

Hi, I'm building an application in .NET 8 and I can't find the option to set the exe file description, the one displayed in Task Manager as the application name. I was able to do it in .NET Framework, but now it just displays the exe file name (assembly…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,727 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,422 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,134 questions
asked 2024-06-01T15:41:05.07+00:00
Alessandro Guizzetti 0 Reputation points
accepted 2024-06-01T16:19:09.7333333+00:00
Alessandro Guizzetti 0 Reputation points
0 answers

Unable to update the application via Embeded Appinstaller.

Hello Team, I had created an application which already up and running in the production. We had distributed the application via software center. So I want to automate the deployment process for my existing application. I had created the appinstaller…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2024-06-01T10:04:22.4266667+00:00
Vaibhav Methuku 80 Reputation points
edited the question 2024-06-01T14:01:33.5366667+00:00
Vaibhav Methuku 80 Reputation points
2 answers

How to use a (.a) Library in a .NET Maui iOS project

I was able to use a (.a) library from my xamarin project. i used to add my library this way in the iOS project .csproj <ItemGroup> <NativeReference Include="Native References/MyLib.a"> <Kind>Static</Kind> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,016 questions
asked 2023-03-16T13:01:31.2733333+00:00
Wael Bouchnak 31 Reputation points
edited an answer 2024-06-01T12:27:12.72+00:00
Edward Brey 1 Reputation point