Microsoft.NET.RuntimeIdentifierInference.targets(176, 5): [NETSDK1175] Windows Forms is not supported or recommended with trimming enabled. Please go to https://aka.ms/dotnet-illink/windows-forms for more details.
Apparently, .NET 6 killed off the ability to use assembly trimming on WPF and WinForms. I thought this'd be a huge issue because I thought this was for embedding the DLLs into the EXE. As it turns out, I was mistaken. This is a good thing. Trimming just reduces the file size of a self-contained app by trimming unused stuff. The self-contained publishing stuff is still usable. This issue only exists to track that.
Microsoft.NET.RuntimeIdentifierInference.targets(176, 5): [NETSDK1175] Windows Forms is not supported or recommended with trimming enabled. Please go to https://aka.ms/dotnet-illink/windows-forms for more details.
Apparently, .NET 6 killed off the ability to use assembly trimming on WPF and WinForms. I thought this'd be a huge issue because I thought this was for embedding the DLLs into the EXE. As it turns out, I was mistaken. This is a good thing. Trimming just reduces the file size of a self-contained app by trimming unused stuff. The self-contained publishing stuff is still usable. This issue only exists to track that.
What I could do to change this is by migrating to Eto or something idk. That'll still use WinForms and/or WPF under the hood. It looks like this project on MAUI uses a tray icon and has led me to look at https://github.com/hardcodet/wpf-notifyicon which seems interesting. People seem to like it. There's also https://github.com/HavenDV/H.NotifyIcon. Both of these just use WPF under the hood but might be far enough away from the compiler for it to not bitch and moan on .NET 6.