如何使用.net框架工作为Windows应用程序和移动应用程序创建单个dll
问题描述:
我想使用visual studio为windows应用程序和移动应用程序创建单个dll
我尝试了什么:
i希望在Windows应用程序和移动应用程序中开发应用程序我需要为Windows应用程序和移动应用程序编写单个dll
i want to create single dll for both windows application and mobile apps using visual studio
What I have tried:
i want to develop application for both in windows application and mobile apps i need to write single dll for both windows application and mobile apps
答
我认为你可以使用'可移植类库',它是Visual Studio中的项目类型,可以帮助您快速,轻松地为Microsoft平台构建跨平台的应用程序和库,可移植类库可以帮助您减少时间和开发和测试代码的成本。使用此项目类型编写和构建可移植的.NET Framework程序集,然后从面向多个平台(如Windows和Windows Phone)的应用程序引用这些程序集。
查看示例 [ ^ ]
希望有所帮助
I think you can use 'Portable Class Library', it is a project type in Visual Studio helps you build cross-platform apps and libraries for Microsoft platforms quickly and easily, Portable class libraries can help you reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows and Windows Phone.
look out this link for sample[^]
Hope it helps