无法部署本地nuget包 [英] Unable to deploy local nuget packages

查看:86
本文介绍了无法部署本地nuget包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正在使用本地部署的nuget软件包开发应用程序。


使用Visual Studio 2015的最新版本3,我们将本地目录添加为包的源。一切正常,nuget包正确部署到c:\ Users \olivierr \ .nuget \ package \目录中,应用程序
可以构建并运行。


使用最新的Visual Studio 2017,我们以完全相同的方式进行,但看起来nuget包未部署到c:\ Users \olivierr \ .nuget \ package \目录中。


然后我们会收到错误消息,例如"无法解析"***。uwp"对于'UAP'。


Visual Studio的两种风格之间可能发生了哪些变化?是否仍然可以使用本地目录中的nuget包?在nuget包中是否有可能错过的内容?


谢谢,


祝你好运,


Olivier

解决方案

嗨Olivier Rocher,


欢迎来到MSDN论坛。


>>> 但似乎nuget包未部署到c:\ Users \olivierr \ .nuget \ package \目录中。


您是否可以从NuGet Package Manager UI中找到本地包?工具 - > NuGet包管理器 - >管理NuGet 包解决方案....如果是,本地部署的nuget包应该成功,这个问题不应该与
nuget本地目录相关。如果没有,请尝试使用其他本地包文件夹,例如,D:\ NuGetLocalServe。


>>> 两种口味之间可能有什么变化Visual Studio?是否仍然可以使用本地目录中的nuget包?在nuget包中是否有可能遗漏的东西?


据我所知,在两种口味之间没有关于nuget 本地目录的变化Visual Studio。您可以使用Visual Studio中本地目录中的nuget包。


如果上述内容无法帮助您,您是否介意向我分享有关错误消息的详细信息或重现此问题的示例?感谢。


Hi,

we are developping applications using nuget packages deployed locally.

Using the latest version 3 of Visual Studio 2015, we are adding the local directory as a the source of the packages. It is all working fine, the nuget packages are properly deployed into the c:\Users\olivierr\.nuget\packages\ directory, and applications can be built and run.

Using the latest Visual Studio 2017, we proceed exactly the same way, but it appears nuget packages are not deployed into the c:\Users\olivierr\.nuget\packages\ directory.

We then have error messages such as "Unable to resolve "***.uwp" for 'UAP".

What may have changed in between both flavors of the Visual Studio? Is it still possible to use nuget packages from local directory? Is there something that may have been missed in the nuget packages?

Thank you,

Best regards,

Olivier

解决方案

Hi Olivier Rocher,

Welcome to MSDN forum.

>>>but it appears nuget packages are not deployed into the c:\Users\olivierr\.nuget\packages\ directory.

Whether you can find the local package from the NuGet Package Manager UI? Tools->NuGet Package Manager->Manage NuGet Package for Solution.... If yes, the nuget packages deployed locally should be successfully, this issue should not related to the nuget local directory. If not, please try to use other local package folder, such as, D:\NuGetLocalServe.

>>>What may have changed in between both flavors of the Visual Studio? Is it still possible to use nuget packages from local directory? Is there something that may have been missed in the nuget packages?

As far as I know, there is no change about the nuget local directory in between both flavors of the Visual Studio. And you can use the nuget package from the local directory in the Visual Studio.

If above could not help you, would you mind sharing me the detail information about the error messages or a sample to reproduce this issue? Thanks.


这篇关于无法部署本地nuget包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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