NAudio icon indicating copy to clipboard operation
NAudio copied to clipboard

Error NETSDK1136

Open knight0fdragon opened this issue 4 years ago • 4 comments

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.

knight0fdragon avatar Mar 16 '21 05:03 knight0fdragon

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.

markheath avatar Mar 16 '21 15:03 markheath

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.

knight0fdragon avatar Mar 16 '21 17:03 knight0fdragon

I'm having the same problem. I guess I'll stay with 1.10 for now then :/

bootzin avatar Apr 23 '21 20:04 bootzin

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.

bmennear avatar Jul 20 '21 16:07 bmennear