在Visual Studio中使用Nuget共享项目 [英] Shared Projects with Nuget in Visual Studio

查看:193
本文介绍了在Visual Studio中使用Nuget共享项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道从哪里开始所以我从这里开始..

Dont know where to start so Ill start here..

我正在尝试使用Native UI编写跨平台应用程序。我采取了共享项目方法。

Im trying to write a cross platform app, with Native UIs. Ive taken the shared project approach.

在.Android,.Ios& .UWP项目我调用我共享的数据服务项目。

Once the UI has processed in the .Android,.Ios & .UWP projects I call to my data services project which is shared.

但是我发现我无法将任何NUget包加载到共享项目,包括System.Data.Sqlclient !!

However I've found I cant load any NUget packages into the shared project, including System.Data.Sqlclient!!

我该如何做到这一点?我需要能够在我的共享项目中放入有意义的代码,我不想在所有三个项目中编写相同的代码。

How can I accomplish this? I need to be able to put meaningful code in my shared project, I dont want to have to write the same code in all three projects.

任何想法?

推荐答案

你好dutchdavey,

Hi dutchdavey,

感谢您在此发帖。

根据你的问题与VS有关,我会把它移到  Visual Studio一般问题  论坛
获得合适的支持。

According to your question is more related to VS, I will move it to Visual Studio General Questions forum for suitable support.

此论坛讨论并询问C#编程语言,IDE,库,示例和工具。如果您有一些语法或代码错误,请随时与我们联系。我们会尽力为您提供解决方案。

This forum discuss and ask the C# programming language, IDE, libraries, samples and tools. If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution.

最好的问候,

Wendy


这篇关于在Visual Studio中使用Nuget共享项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆