Content
Why is Select().Contains() ok while Any() is not?
Hi all; I first tried the following code: var statesIndirectDelete = await States .Where(s => deletedCountries.Any(c => c.Id == s.CountryId)) .ToListAsync(); and that gave me the error: System.InvalidOperationException The LINQ expression…


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…


Unable to catch exception in DotNetReference-invokeMethodAsync call in JavaScript
catch exception why not in catch code ?


CreateRendererWithContext .net MAUI android
0 i am re using xamarin forms renderer in MAUI. while creating renderer with "CreateRendererWithContext" method getting exception. below is my code. using AndroidPlatform =…


Need help to understanding the code
Hi, This is part of a tutorial for OpenAI development: https://www.c-sharpcorner.com/article/building-ai-chatbot-app-with-chatgpt-api-and-blazor-a-step-by-step-guide/ Can you please help me to understand this part of the code: Content = new…


Wrapping Python 3.7 code in C#
I'm looking at wrapping an existing Python project, yt-dlp, in C#.NET. They need Python 3.7. The main thing I want to do is to is call their code, though being able to pass them a delegate, if they use something like that in their code, might help. Any…


How to properly manage multiple versions of dotnet SDKs
I have to build an F# project which requires dotnet 7.0.201. I have dotnet 7.0.302 globally installed. The command could not be loaded, possibly because: * You intended to execute a .NET application: The application 'run' does not exist. *…


Serilog - email sink multiple recipients?
Hi guys, I am trying to send emails to multiple recipients with Serilog but couldn't figure it out. Any help, please? { "Name": "CustomEmail", "Args": { "ConnectionInfo": { …


Net maui visualstate for IsVisible not working ?
Net maui visualstate for IsVisible not working ? when backgroundcolor is working but when setter property as Isvisible is not working , can you help me thanks .. <CollectionView.ItemTemplate> <DataTemplate> …


Steadily painted over (slow application)
I am using the following code, but my application becomes quite slow. What I can do? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using…


How to generate a test or development build of an windows desktop application using c#
I have modified my Windows application developed using c# to open through a URL now I want to share this build with my client for testing so how to create a test build in the visual studio can anyone suggest me an approach ?? Thanks in advance. …


How to fix Severity Code APT2062 failed linking references.
Hi There, When I try to run the .Net Maui project on android Emulator I found run time error say that. "Severity Code Description Project File Line Suppression State Priority Error APT2062 failed linking references.C:\ ProgramFiles \dotnet \packs…


CollectionView template not support RTL
Hi, CollectionView template not support RTL. I attached the file:עברית.txt Please see the code: The results is: txt.עיברית <CollectionView ItemsSource="{Binding Data}"> <CollectionView.ItemTemplate> …


How to Fix this error APT2000 expected reference but got (raw string) #000000.
Hi There, When I try to run the .Net Maui project on android Emulator I found run time error say that. "Severity Code Description Project File Line Suppression State Priority Error APT2000 expected reference but got (raw string)…


System.Data.SqlClient.SqlException: 'Incorrect syntax near ')'.'
I am trying to make a simple web that gets your your username,email, etc... and stores it in a sql database (usersDB.mdf) the table name is(users) But I am getting a error saying System.Data.SqlClient.SqlException: 'Incorrect syntax near ')'.' here…


how to create a qrcode?
how to create qrCode with url into a stream in api?
The. net call to refresh the tray area code in the win11 system does not take effect when clearing residual icons
The relevant code for refreshing the tray area is called in the win11 system code, and it does not take effect occasionally The residual icon still exists, it can disappear when the mouse hovers over it The code is as follows: const uint WM_MOUSEMOVE =…


Visual Studio 2022 C# project templates does not create a project
After installing Visual Studio 2022, I attempted to create a new project using the C#/.NET/MVC standard template. When the project is created, it is empty, there are no files created and no project within the new solution.


asp.net core odata orderby complex Conditional sorting
asp.net core odata order with two where,how write url 1.summay.contains 2.week [HttpGet] [EnableQuery(EnsureStableOrdering = false)] public IActionResult Get() { IEnumerable<WeatherForecast> values = new…


Button selection like in menu
Hi, Please see https://app.screencast.com/Lgk50on26Xky6 When I select on my left menu side that consist of buttons i want that the buttons will be selected like in web screencast. All others buttons in app not influence from the selection in the my…

