Today, NuGet does not really offer a way of telling .NET from the Mono runtime apart, so you would have to use different NuGet packages if there is code that needs to be made platform specific.
That said, remember that Windows.Forms is not actively maintained by the Mono team. On 8/3/16, 3:16 AM, "[email protected] on behalf of Tiago Freitas Leal" <[email protected] on behalf of [email protected]> wrote: Hi all, I'm developing an open source library - MVVM for Windows Forms <https://github.com/tfreitasleal/MvvmFx> - that includes a Windows Forms control library. This library target .NET Windows Forms. Since Mono is gaining momentum, I think it would be useful to port the library to Mono and enable Windows Forms applications that use the library to run on non-Windows OSes. I need a NuGet target for Mono or else I must release separate NuGet packages for Mono, like *MvvmFx-WinForms* and *MvvmFx-WinForms-Mono*, etc for each package. ----- --- Tiago Freitas Leal -- View this message in context: https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fmono.1490590.n4.nabble.com%2fI-need-a-NuGet-target-for-Mono-tp4668301.html&data=01%7c01%7cmiguel%40microsoft.com%7c992ecad0bd84464a894408d3bb7469bf%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=8j9cWUl6Ptok1ZpFcTJpmlnvsjXEfU1naXFEbgW9mf0%3d Sent from the Mono - WinForms mailing list archive at Nabble.com. _______________________________________________ Mono-winforms-list maillist - [email protected] https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2flists.dot.net%2fmailman%2flistinfo%2fmono-winforms-list&data=01%7c01%7cmiguel%40microsoft.com%7c992ecad0bd84464a894408d3bb7469bf%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=WrpJn3zlcCdcidlBw22z8fG1AwxBH2%2fo%2fCmbicZaoF4%3d _______________________________________________ Mono-winforms-list maillist - [email protected] http://lists.dot.net/mailman/listinfo/mono-winforms-list
