简体   繁体   English

如何在Xamarin共享项目中使用nuget包

[英]how to use nuget package in xamarin shared project

I'm working with xamarin potable project and I made it like this - here . 我正在与xamarin便携式项目合作,我做到了- 在这里 And I'd like to use couchbase lite sdk 1.4 (current version) in the project. 我想在项目中使用沙发床lite sdk 1.4(当前版本)。 But I can't add the nuget package in potable and UWP project. 但是我不能在便携式和UWP项目中添加nuget包。 Someone says current version dosn't support UWP and I will be a standard library in version 2.0. 有人说当前版本不支持UWP,而我将成为2.0版中的标准库。 So I'd like to make WPF project instead of UWP. 所以我想制作WPF项目而不是UWP。 But I need to keeps the structure of xamarin potable project. 但是我需要保留xamarin便携式项目的结构。 So when 2.0 version will be release, I need to make UWP project. 因此,当2.0版本发布时,我需要制作UWP项目。 But I can't add the nuget package to potable project for now. 但是我暂时不能将nuget包添加到便携式项目中。 So I can't implement shared logic. 因此,我无法实现共享逻辑。 Who knows how to make the shared project that include wpf project similar xamarin potable project . 谁知道如何使包含wpf项目的共享项目类似于xamarin便携式项目。 I implemented MVVM to current project. 我在当前项目中实施了MVVM。 Thanks 谢谢

I found the solution. 我找到了解决方案。 https://github.com/couchbaselabs/mobile-training-todo This is shared project that used couchbase lite sdk. https://github.com/couchbaselabs/mobile-training-todo这个共享项目使用了长沙发lite sdk。

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

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