How can I remove the platforms I do not need to compile for in .net MAUI?

Required Change In your .csproj file, remove the targets for the platforms you aren’t building for, reducing it to the following: <TargetFrameworks>net6.0-maccatalyst</TargetFrameworks> <TargetFrameworks Condition=”$([MSBuild]::IsOSPlatform(‘windows’))”>$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks> Optional Changes In your .csproj file, remove the supported version information for the platforms you aren’t building for, reducing it to the following: <SupportedOSPlatformVersion Condition=”$([MSBuild]::GetTargetPlatformIdentifier(‘$(TargetFramework)’)) == ‘maccatalyst'”>14.0</SupportedOSPlatformVersion> <SupportedOSPlatformVersion Condition=”$([MSBuild]::GetTargetPlatformIdentifier(‘$(TargetFramework)’)) == ‘windows'”>10.0.17763.0</SupportedOSPlatformVersion> … Read more

HttpListener class with HTTPS support

I did a bunch of homework and got this working. The steps to add SSL support for an .NET HttpListener are: Update C# application code to include the https prefix. Example: String[] prefixes = { “http://*:8089/”,”https://*:8443/” }; That’s it from the code aspect. For the certificate side of things, using the Windows SDK command console … Read more

What .NET-compatible graph database solution(s) have a proven track record?

Trying to implement a graph database in Mongo is a rabbit hole that’s been tried before. See this message from the TinkerPop user group: https://groups.google.com/d/msg/gremlin-users/_zweYGxR8wM/0AUu-UoqTRIJ Microsoft’s Trinity graph is an internal project not available for download: http://research.microsoft.com/en-us/projects/trinity/ Neo4j Server (http://neo4j.org) paired with Romiko and Tatham’s .NET client (http://hg.readify.net/neo4jclient/wiki/Home) is a popular combination. Neo4j scales to … Read more

How to export PDF page as an image using PDFsharp .NET library?

The answer can be found in the PDFsharp FAQ list: http://www.pdfsharp.net/wiki/PDFsharpFAQ.ashx#Can_PDFsharp_show_PDF_files_Print_PDF_files_Create_images_from_PDF_files_3 PDFsharp creates PDF files, but it cannot render them. The call Bitmap b = new Bitmap((int) pdfp.Width.Point, (int) pdfp.Height.Point, xgfx.Graphics); does not initialize any bits of the bitmap and does not copy anything from the Graphics object except for the DPI setting of the … Read more

Workaround for WPF Freezable bug?

To workaround this .net bug, change all of the Solid Color Brushes in your code to be freezeable. For example <SolidColorBrush x:Key=”WindowBackground” Color=”Black” /> should be changed to: <SolidColorBrush po:Freeze=”True” x:Key=”WindowBackground” Color=”Black” />. For more detailed instructions see here: How can WPF objects deriving from Freezable be frozen in XAML?.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)