Microsoft Q&A

.NET

15,206 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

15,206 questions with .NET-related tags

Sort by: Updated
0 answers

Have Datetime as part of version string while creating MSIX package

I have a .NET MAUI app and I'm able to create MSIX installer. I want to add the datetime as suffix to the version number when the MSIX is created. for example, MauiPublishTest_1.0.0.15_x64.msix is the file name I get and I would like to get something…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
507 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
399 questions
asked 2023-05-30T20:19:31.54+00:00
Elangovan Manickam 0 Reputation points
edited the question 2023-05-30T20:47:25.42+00:00
Rob Caplan - MSFT 4,862 Reputation points Microsoft Employee
1 answer

Problem with Community Toolkit MediaElement

I am having trouble with the Community Toolkit MediaElement and cannot find a way to tell that team about the problem. The problem is simple in that I have a content page with 5 Content Views. I have buttons to show the view and when I run it thru the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 questions
asked 2023-05-30T20:15:41.3933333+00:00
Lloyd Sheen 1,076 Reputation points
edited an answer 2023-05-30T20:43:42.5133333+00:00
Rob Caplan - MSFT 4,862 Reputation points Microsoft Employee
1 answer

how to validate hidden doms

I have a hidden value <input type="hidden" asp-for="ImageUrl" /> <span asp-validator-for="ImageUrl" /> how to validate it? jquery.validate will not validate the hidden doms.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,131 questions
asked 2023-05-29T09:27:54.4433333+00:00
mc 1,921 Reputation points
answered 2023-05-30T20:39:30.9+00:00
Bruce (SqlWork.com) 35,716 Reputation points
0 answers

SslStream Escaping UTF-8 URL Encoding Above %7F (Multi-byte)?

I am trying to send special characters via an SslStream and StreamWriter that makes a URL GET request like so: var req = new HttpRequestMessage( HttpMethod.Get, m_client.BaseAddress ); m_sessionClient.AddSessionInfoTo( req ); var uri =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,148 questions
asked 2023-05-30T20:17:03.7633333+00:00
AnaCoda 0 Reputation points
2 answers

Task, CancellationToken, ManualResetEvent problems.

Hello! My goal is to use a button to start a thread, a task. If I now press Cancel, I must get a message. When the thread/task has done its work, it should report finished. It does not work. Where is the error? Can someone give some tips? public class…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,477 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.
8,164 questions
asked 2023-05-30T16:16:58.46+00:00
Markus Freitag 3,121 Reputation points
answered 2023-05-30T20:14:00.0633333+00:00
Bruce (SqlWork.com) 35,716 Reputation points
1 answer

publish an IIS my asp net core application

Hi, I try to pubish my application aspnet core and follow up the link publish-to-iis I publish in the repository \bin\Release\net5.0 After that copy/paste the repository in IIS repository. First of all I received this message How…

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.
3,131 questions
asked 2022-07-24T17:53:45.337+00:00
sblb 976 Reputation points
edited a comment 2023-05-30T20:09:36.9633333+00:00
sblb 976 Reputation points
0 answers

Blazor Tags css styles

Dear Community! I already asked on reddit but nobody could help me. How can i apply css styles from the name.razor.css file to Blazor custom tags like the <InputText> for example? Defining styles for input or creating as custom class do not work…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,148 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.
971 questions
asked 2023-05-30T19:38:06.9933333+00:00
Oliver 21 Reputation points
0 answers

.net MAUI ListView item appearing animation time

I am trying to figure out how to have newly added data populate a CollectionView (top) or ListView (bottom) instantly instead of this default fade in that takes up to 1 second to show the new data. I'm doing this in Windows. Is this an animation that can…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 questions
asked 2023-05-29T17:51:29.1366667+00:00
firstname lastname 0 Reputation points
commented 2023-05-30T19:22:32.2366667+00:00
firstname lastname 0 Reputation points
1 answer One of the answers was accepted by the question author.

How do i fix errors when targeting net7.0 tfm when using handlers in maui?

Here is the link to the sample project: https://github.com/veldfolds/VideoDemos.git

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 questions
asked 2023-05-28T15:19:14.6566667+00:00
Adrian Kuboka 1 Reputation point
edited the question 2023-05-30T19:21:26.5466667+00:00
Rob Caplan - MSFT 4,862 Reputation points Microsoft Employee
0 answers

.NET MAUI 7: How to set font for some 'special' elements? Or set a global font? (for dialogues, calendar, flyout tabbar, context menu button)

in our .NET MAUI 7 Android App, we've added a custom font and attach it to all possible elements. However, there are some elements for which we have not yet found a way to change the font: Dialogues example 1 example 2 Calendar example Flyout Bottom…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 questions
asked 2023-05-15T12:09:54.8166667+00:00
David 20 Reputation points
commented 2023-05-30T18:43:12.22+00:00
David 20 Reputation points
0 answers

MAUI: Handlers and commands to style the Shell Bottom Tabbar More Menu?

Hi, which handlers (and commands) do I have to use to style the Shell Bottom Tabbar More Menu (the one that appears when I hit the 'More' button)? I need to change: The headline font in iOS The menu font in iOS and Android The icon color in iOS and…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 questions
asked 2023-05-19T06:49:33.3+00:00
David 20 Reputation points
commented 2023-05-30T18:42:22.3933333+00:00
David 20 Reputation points
1 answer

How to disable textbox control when Purchase Date is more than 60 days past Receipt Date

Hi, I know this question has to do with jQuery date picker but I can't find jQuery or JavaSxript. We have three textbox controls, ReturnDate, PurchaseDate, and RefundAmount. PurchaseDate and RefundAmount are part of a Repeater control. Our customers are…

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.
549 questions
asked 2023-05-30T01:57:03.2566667+00:00
Simflex 171 Reputation points
commented 2023-05-30T18:38:19.25+00:00
Simflex 171 Reputation points
0 answers

EF core 6 then Include issue

In EF core 3.1 I am able to include a collection of object using include statement. After that then include is not working in EF core 6 eg public class Parent { public int Id { get; set; } public string Name { get; set; } public…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
243 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,131 questions
asked 2023-05-30T12:00:28.49+00:00
Mohan Chanchal 0 Reputation points
edited a comment 2023-05-30T18:34:18.3766667+00:00
AgaveJoe 22,626 Reputation points
3 answers

Can I do a swap on a Blazor Server App service without disconnecting users?

I run an App Service hosting a Blazor Server Application. The App service has a staging and production slot. When I do a swap from staging to production I would like users to remain connected and have 0 downtime. Is this possible? The application also…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
971 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
91 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
4,910 questions
asked 2023-05-21T03:57:28.9233333+00:00
Sean Wauchope 30 Reputation points
commented 2023-05-30T18:08:30.6433333+00:00
Sean Wauchope 30 Reputation points
1 answer

Azure functions SSL issue with Cosmos DB in .net 6 ?

Hello Team,  I am facing one issue the new .net version 6 and azure function v4. Could you please help me with this? I have one azure function application which uses Cosmos DB. Recently I have upgraded from .net core v3.0.1 to .net 6 and…

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,050 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
996 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,001 questions
asked 2022-07-28T11:04:09.467+00:00
Thirupathi Janga 1 Reputation point
commented 2023-05-30T17:03:49.35+00:00
Joseph F. Boysen 0 Reputation points
1 answer

How To download from ftp site using http client

I cannot find a SIMPLE EXAMPLE anywhere that shows how to use (recommended) HTTPCLIENT to replace the now OBSOLETE WebCclient, WebRequest etc. I cannot find a SIMPLE EXAMPLE anywhere that shows how to use (recommended) HTTPCLIENT to replace the now…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,148 questions
asked 2023-05-29T14:03:53.55+00:00
HowardMontemurro-7208 20 Reputation points
commented 2023-05-30T16:21:51.82+00:00
HowardMontemurro-7208 20 Reputation points
1 answer

Xamarin to MAUI: When setting <UseMaui>true</UseMaui> in csproj, my xaml.cs files are removed

Within the csproj file, when setting the tag <UseMaui>true</UseMaui>, all xaml.cs files that were used with Xamarin are removed. When setting <UseMaui>false</UseMaui> all xaml.cs files are returned. This happens when using the…

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.
642 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,399 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.
8,164 questions
asked 2023-05-24T15:02:51.5066667+00:00
Franklin 6 Reputation points
answered 2023-05-30T16:02:05.02+00:00
Bruce (SqlWork.com) 35,716 Reputation points
2 answers

How to change a blob whern I store in a container

Hello, I have an azure function that is using a blob trigger. A file is dropped in a container every 30 miniutes. The azure function start and process the file(Blob) and store the file in archive container. But every file that is dropped have the same…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,001 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,680 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.
8,164 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,148 questions
asked 2023-05-12T06:33:02.38+00:00
Tony Johansson 40 Reputation points
commented 2023-05-30T15:43:20.18+00:00
Sumarigo-MSFT 34,676 Reputation points Microsoft Employee
1 answer

How to deploy .NET core plugin application and avoid duplication of assemblies

Following is a simplified version of what I want to acheive: I have the the following .NET Core projects: Main -> Executable (Console Application) Plugin1 -> Class Library Plugin2 -> Class Library 3rdPartyComponent -> Class…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
1,148 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
399 questions
asked 2023-05-30T13:18:35.6966667+00:00
Suresh Kumar 1 Reputation point
answered 2023-05-30T15:38:14.3433333+00:00
Bruce (SqlWork.com) 35,716 Reputation points
1 answer

Web API references Microsoft.ApplicationInsights.AspNetCore that depends on a deprecated package

Hello, I have a Web API targeting .NET7. I need to send the logs to Azure and in order to configure this I need a reference to this package: Microsoft.ApplicationInsights.AspNetCore that depends on the deprecated projects. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,131 questions
asked 2023-05-30T11:39:01.0233333+00:00
Angela Calborean 6 Reputation points
answered 2023-05-30T15:28:54.85+00:00
Bruce (SqlWork.com) 35,716 Reputation points