简体   繁体   English

我在哪里安装NuGet软件包

[英]Where do I install NuGet Package

My solution consist of 3 projects: A Core, Library and AzureWorkerRole. 我的解决方案包括3个项目:A Core,Library和AzureWorkerRole。

I want to know in which project should I run "PM> Install-Package Microsoft.WindowsAzure.Caching"... technically the cache will be co-located with "AzureWorkerRole", but the "Core" will be the only project to really access the cache... 我想知道我应该在哪个项目中运行“ PM> Install-Package Microsoft.WindowsAzure.Caching” ...从技术上讲,缓存将与“ AzureWorkerRole”位于同一位置,但是“ Core”将是唯一要真正运行的项目访问缓存...

so should I install it on the Core, AzureWorkerRole or both? 所以我应该将其安装在Core,AzureWorkerRole或两者上吗?

The worker role project will have necessary dependencies when you configure it for caching via the properties dialog window. 当您通过属性对话框窗口配置工作角色项目以进行缓存时,工作角色项目将具有必要的依赖关系。

Then you need to add reference to the caching assembly only to the project that uses the cache, and make sure you mark it with True value for the Copy Local attribute. 然后,您需要仅对使用缓存的项目添加对缓存程序集的引用,并确保为“ Copy Local属性将其标记为True值。

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

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