Barranger Ridler
Barranger Ridler

Reputation: 880

Cannot resolve Microsoft.WindowsAzure.StorageClient

I have a Azure-Web-Site setup to deploy via git, however when I do, I'm getting a compiler error stating:

D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

This is on a seperate project than my MVC project that does have Microsoft.WindowsAzure.StorageClient as a reference and within the properties I do have it set to CopyLocal

Any thoughts?

Upvotes: 1

Views: 1684

Answers (1)

AvkashChauhan
AvkashChauhan

Reputation: 20556

Even when you have "Copy Local" property set to "true" you still need to be sure that when you deployed your application to Windows Azure, all the files are deployed. I believe the key is that when you run "git commit" be sure the list all the files which will be pushed.

For example when I ran git commit -m "initial commit" I can verify below that Windows Azure Storage related references are included as below:

enter image description here

After that when you will call git push azure master these additional references will sure to be deployed.

All my steps during my Git test are documented in my blog Using Git to deploy an ASP.NET website shows Windows Azure Blob Storage list at Windows Azure Websites.

Upvotes: 3

Related Questions