NAudio
NAudio copied to clipboard
Error NETSDK1136
The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) when using Windows Forms or WPF, or referencing projects or packages that do so.
It seems 2.0 is built using a windows dll breaking cross compatability.
Need to revert to 1.10 till this issue is fixed.
NAudio is now a meta-package referencing several lower-level packages. So you can just directly reference NAudio.Core, NAudio.WinMM etc if you don't need NAudio.WinForms which I suspect is the cause of this error when referencing NAudio in .NET 5.
Ok, splitting this up breaks AudioFileReader since that requires the full NAudio package. Revert to 1.10 until AudioFileReader does not rely on windows libraries.
I'm having the same problem. I guess I'll stay with 1.10 for now then :/
Experiencing the same in the latest stable (2.0.1), also reverted to 1.10.0 for same reason as I need to utilize AudioFileReader.