Class Library (Legacy Portable)?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 20:02:45

问题


I have one PC with Microsoft Visual Studio Community 2017 Version 15.2 and it has a project template for Class Library (Portable).

Another PC with Version 15.3.1 has a template for Class Library (Legacy Portable). Are PCLs now legacy ?

Any current news on what I should be using instead ?


回答1:


Well, "should", I won't say that without seeing exactly what you're doing but yes, PCLs are now "legacy", the new way is .NET Standard and .NET Core.

Please note that legacy does not mean "will stop working" so there shouldn't be a need to do anything as of yet.

To figure out which kind of .NET Standard version you want to target to get-out-of-legacy, you can consult the compatibility list on the .NET Standard web page.

Specifically, you likely want to consult the other matrix on the same web page, the .NET Implementation Support matrix and figure out which platforms you want to target, then create a "Class Library (.NET Standard)" project targetting the highest .NET Standard version you can get away with.



来源:https://stackoverflow.com/questions/45816785/class-library-legacy-portable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!