简体   繁体   English

Xamarin-将PCL项目添加到SAP?

[英]Xamarin - Add PCL project to SAP?

In the free book "Creating Mobille Apps with Xamarin.Forms" It states: 在免费书籍“使用Xamarin.Forms创建Mobille应用程序”中指出:

If you've created a Xamarin.Forms solution with a Shared Asset Project, you can add a new PCL project to the solution by selecting the Class Library (Xamarin.Forms Portable) template. 如果使用共享资产项目创建了Xamarin.Forms解决方案,则可以通过选择“类库”(Xamarin.Forms Portable)模板将新的PCL项目添加到解决方案中。

How would I go about doing this? 我将如何去做呢? I've added reference to each of the platform projects. 我已经添加了对每个平台项目的引用。

It is said that you can refer a PCL project when you use a SAP. 据说在使用SAP时可以引用PCL项目。 But, very honestly I dont see the use of adding both SAP and PCL. 但是,老实说,我看不到同时添加SAP和PCL的使用。 Its normally either one of them. 它通常是其中之一。 But If you need to add aa PCL project to the exisitng project, you should refer them in the native project. 但是,如果需要将PCL项目添加到exisitng项目,则应在本机项目中引用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM