Search code examples
c#.netasp.net-mvcdllportable-class-library

Its is better to create class lib or portable class lib?


I have to use some API in my project and for that my boss asked me to create lib for that API. Its .Net project and may be in future it may have Android app. But for now he wants me to create lib in c# by hitting on API. Can you suggest me should I start with portable Class lib or class library?

This is the API for which i have create lib http://api.synapsepay.com/v2.0/docs/user-resources


Solution

  • Portable class library is the best choice. PCL is for creating code that can be used on multiple platforms in the .NET family. PCL may be useful later if you're planning on using something like Xamarin to publish for android, but isn't useful for anything that doesn't pertain to .NET right on creation.