Microsoft Q&A

.NET

20,744 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

4,920 questions with .NET-related tags

Sort by: Updated
0 answers

Is there a way to automate adding the FullText Index to an Entity Framework migration

Hi all; Yes I can add the script to the Migration.Up() everytime I revise my model. But that is fundamentally no different from having a CreateIndexes.sql that I just run in SSMS after creating a DB. Is there some way to declare the full text indexes in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
11,012 questions
asked 2023-10-01T21:18:20.5333333+00:00
David Thielen 1,426 Reputation points
commented 2023-10-02T18:55:10.99+00:00
David Thielen 1,426 Reputation points
0 answers

best practice for Application Insights with Blazor Server

i have seen multiple posts about Blazor Web Assembly and Application Insights but almost zero on how to best use application insights with Blazor server. is the only way to treat blazor server like web assembly ? are there any guides on how to get full…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,586 questions
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,113 questions
asked 2023-10-02T18:35:53.3266667+00:00
Denny Figuerres 0 Reputation points
0 answers

How to get a .NET 8.0 (isolated) function app to appear in my release pipeline, or successfully deploy from Visual Studio

I made a new .NET 8.0 Isolated Function App on by B1 App Service plan three days ago and I'm used to being able to select my Azure Subscription, then "Function App on Windows", and then select the resource from the dropdown, but I see nothing…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,465 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,071 questions
asked 2023-10-01T15:33:15.31+00:00
Richard Traviolia 0 Reputation points
commented 2023-10-02T17:47:47.4533333+00:00
MuthuKumaranMurugaachari-MSFT 16,216 Reputation points
0 answers

Como enviar datos de la variable del back al front

Como enviar la variable del back al front, ya que como lo tengo me marca error no lo reconoce. Back string Id_Hub_CFDI = "SORIANA2000"; Como enviar la variable del back al front <scrip> var Id_Hub_CFDI_Ent =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,642 questions
asked 2023-10-02T15:00:22.0066667+00:00
roberto chavarria 0 Reputation points
0 answers

Determine "Recommended" display resolution settings

Got the code that gets a list of the monitors (using EnumDisplayDevices) along with getting all the settings (using EnumDisplaySettings) for each monitor working just fine. However, when I right click my desktop and adjust the resolution one of the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,913 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,071 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.
9,031 questions
asked 2023-10-02T16:02:33.03+00:00
Dave Cotton 41 Reputation points
0 answers

How to listen to mouse clicks anywhere in the Visual Studio IDE and get information about the component that was clicked?

I'm trying to create an extension that listens to mouse clicks anywhere in the Visual Studio IDE window and get information about what was clicked. So far, I've only managed to do that for the text editor panel with IMouseProcessor, but I can't figure…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,071 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,821 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.
9,031 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
112 questions
asked 2023-10-02T17:56:30.8666667+00:00
stella 0 Reputation points
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 55 Reputation points
edited a comment 2023-10-02T14:18:08.91+00:00
Sakshi Poojary 55 Reputation points
0 answers

How to protect Net.Core server from malicious content uploads by users?

Hi! I have a website where on certain pages the user can (through checks in the controller method): To save (upload to server) text in text fields and to CKEditor. To save (upload to server) images (.jpg) to website through CKEditor and through …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,586 questions
asked 2023-10-01T15:31:24.0033333+00:00
Volk Volk 301 Reputation points
commented 2023-10-02T10:17:36.2633333+00:00
Volk Volk 301 Reputation points
0 answers

Three material Design TextBoxes inside one MaterialDesignFloatingHintTexbox in WPF

I have a MaterialDesignFloatingHintTextBox which displays a "Date of Birth" hint to my users when it is empty. Here is what I want to implement: the TextBox to display three TextBoxes to the user when clicked in like this, so that my users…

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,483 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,821 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.
9,031 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
695 questions
asked 2023-10-02T08:44:28.02+00:00
Mesh Ka 140 Reputation points
edited a comment 2023-10-02T12:43:51.3033333+00:00
Mesh Ka 140 Reputation points
0 answers

How to automatically swipe images in gallery

Hi, Please I have 3 images in gallery. Is a way to automatically swipe these images using javascript or CSS? As the image in front swipes to the right, the image on the left should swipe to the right and vice versa. .gallery{width:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,071 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,642 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
694 questions
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
621 questions
asked 2023-10-02T11:42:22.9033333+00:00
Donald Symmons 2,026 Reputation points
0 answers

Multiple app shells

Hi, In app.cs ctor i have condition to move to login through AppShell or to move to main page. It possible to create new app shell and move to main page through this new app shell? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-10-02T11:52:11.3566667+00:00
דני שטרית 1,261 Reputation points
0 answers

How to create popup window that display Product Details ?

Hi friends! I have a DataGrid that contains a list of product . when i click on a product i should open a popup windows that contains Product's details and i would modify the Price in it for example. I implement a GlobalUsing.cs such : global using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 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.
9,031 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
695 questions
asked 2023-10-02T14:07:46.96+00:00
Kaouthar GR AOUICHAOUI 0 Reputation points
0 answers

How to reduce font size based on Textblock size

Hi All, I have a Textblock inside WPF grid which can span to 1 to n rows based on some conditions. When Textblock is spanned to two or more rows it mostly displays the text completely due to textwrapping set to "wrap". But when Textblock is…

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,483 questions
asked 2023-10-02T14:32:18.0866667+00:00
Pratham Jain 181 Reputation points
0 answers

use "Application.Current.UserAppTheme = AppTheme.Light" force application theme light, the first line of iphone will disappear when system is dart theme

Application.Current.UserAppTheme = AppTheme.Light; I want to set the application theme light, use the upper line code , but when ios system theme is dark , first line of iphone (time signal..) will display with white textcolor, then will disappear on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-10-02T14:54:57.8166667+00:00
Fei Xu 370 Reputation points
0 answers

MAUI extensions not available on visual studio 2022

I have Visual Studio v 17.7.4 and Visual Studio Preview v 17.8.0 and have recently installed the MAUI suite.  I am not given the option to create multi-platform apps as I assume I would on VS or VSP. I have gone through previous iterations of the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,821 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-09-17T23:15:46.5933333+00:00
Reabetswe Marumane Mogoswane 0 Reputation points
commented 2023-10-02T07:45:21.76+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,166 Reputation points Microsoft Vendor
0 answers

Unable to get provider com.microsoft.intune.mam.client.support.v4.content.MAMFileProvider

When trying to deploy an app using Microsoft.Intune.Maui.Essentials.android we get an exception as below. Java.Lang.RuntimeException: 'Unable to get provider com.microsoft.intune.mam.client.support.v4.content.MAMFileProvider:…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
169 questions
asked 2023-09-27T02:31:43.9166667+00:00
ANBALAGAN SARANYA 31 Reputation points
commented 2023-10-02T06:38:06.17+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,166 Reputation points Microsoft Vendor
0 answers

Maui mobile app using Signalr is encoding hub name in ConnectionData parameter on iOS 17

We have a mobile app in production built using Maui. The server running the api is it connecting to uses .net framework. There are issues connecting to signalR from iOS17 devices. From debug we can see the following: iOS 17 device sets the connectionData…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,642 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-09-27T11:39:11.9033333+00:00
T_TDSi 0 Reputation points
commented 2023-10-02T09:13:22.5266667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,571 Reputation points Microsoft Vendor
0 answers

Get null values in claims in azure ad authentication using DotNet core 6.0 Web Api

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,677 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,071 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,586 questions
asked 2023-09-30T13:45:48.4133333+00:00
Mansi Sulodia 1 Reputation point
commented 2023-10-02T05:35:02.0766667+00:00
JasonPan - MSFT 2,691 Reputation points Microsoft Vendor
0 answers

"Failed to get document because the client is offline" error in Xamarin.Forms project

Here is my code of App.xaml.cs file of a Xamarin.Forms project: public partial class App : Application { public App() { CrossFirebaseCrashlytics.Current.HandleUncaughtException(); InitializeComponent(); …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,161 questions
asked 2023-10-01T17:36:29.6766667+00:00
Costas Athan 21 Reputation points
edited a comment 2023-10-02T09:46:29.1666667+00:00
Costas Athan 21 Reputation points
0 answers

how to remove realm database used in swift iOS in .NET MAUI?

Hello, I rebuild iOS app using .NET MAUI. There was data stored in realm database in iOS app. In MAUI, i want to remove it because it's no longer needed. Is there any way to do that? Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-10-02T03:18:00.0066667+00:00
Nam Pham 71 Reputation points
edited the question 2023-10-02T09:08:10.97+00:00
Nam Pham 71 Reputation points