Install-Package Microsoft...." /> Install-Package Microsoft...." /> Install-Package Microsoft...."/>

Where do I install NuGet Package

46 views Asked by At

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?

1

There are 1 answers

0
astaykov On BEST ANSWER

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.