简体   繁体   中英

Where do I install NuGet Package

My solution consist of 3 projects: A Core, Library and 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...

so should I install it on the Core, AzureWorkerRole or both?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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