Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make library portable #17

Open
ApocalypticOctopus opened this issue Jan 12, 2016 · 4 comments
Open

Make library portable #17

ApocalypticOctopus opened this issue Jan 12, 2016 · 4 comments

Comments

@ApocalypticOctopus
Copy link
Contributor

It would be nice if the NuGet package was a portable class library. This could be done by using the template called Class Library (Portable) in Visual Studio 2015 Community Edition.

The advantage to doing it this way is that your library can be used in applications for Windows Store, Windows Phone, Xamarin Android, Xamarin iOS, Silverlight, etc.

@jgrosso
Copy link

jgrosso commented Jan 12, 2016

Want to make a PR for review?

@ApocalypticOctopus
Copy link
Contributor Author

Yes, that would be great!

@jgrosso
Copy link

jgrosso commented Jan 12, 2016

We'll be watching... good luck!

@ApocalypticOctopus
Copy link
Contributor Author

Thanks!

Unfortunately the IsAssignableFrom method is not available for .NET 4.5 (or 4.5.1) Portable Class Libraries.

To make CSharpMonad be a portable class library, we'll have to upgrade it to .NET 4.6 and a minimum of Visual Studio 2015. The advantage is that this library will be available for all Windows Universal 10 apps (which includes all the platforms listed here); the disadvantage is that the library wouldn't be available to code using less than .NET 4.6.

What do you think--is this tradeoff acceptable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants