c# - Can PCL libraries run with ASP.NET MVC? -
i wish write library can run on number of targets such wpf, windows phone/mobile, mono, , asp.net. keep searching information on seems pcl's not supported in asp.net?
even vs indicates pcl can't used asp.net:
so should able write pcl runs on platforms? use pcl apart asp.net, , create normal class library asp.net , copy+paste code?
the short answer yes, long pcl profile supports the same .net framework version mvc application targeting, fine.
when create portable class library, can choose combination of platforms want code run on. compatibility choices make when creating portable class library translated "profile” identifier, describes platforms library supports.
what confused you, fact asp.net not mentioned in list of supported software frameworks (platforms). reason asp.net not software framework, application framework (higher level). means whatever application frameworks target software framework pcl supports, application frameworks work.
be sure take caution when choosing supported platforms when creating new pcl project, since api available use in project depends on choice!
you can read more portable class libraries on msdn.
Comments
Post a Comment