Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type or namespace name 'Diagnostics' does not exist in the namespace 'Microsoft.WindowsAzure'

Tags:

azure

I'm working with a pre-existing codebase from a software developer that has left my company. I've downloaded the source code from the repository. When I attempt to build the project, I get an error that says:

The type or namespace name 'Diagnostics' does not exist in the namespace 'Microsoft.WindowsAzure' (are you missing an assembly reference?)  

I can't figure out how to get this project up-and-running. When I look at the NuGet packages associated with the project, I can see that the Windows Azure Configuration Manager and Windows Azure Storage packages are already installed. I'm not sure what I'm missing though.

Can someone tell me what I need to install on my machine to get past this error? Thanks!

like image 731
user3284007 Avatar asked Nov 10 '22 12:11

user3284007


1 Answers

I recently had this error. The problem was that the project was referencing Framework 3.5 and I have the 2.4 SDK installed which targets 4.0. Upgrade your project to target 4.0 and you should be fine.

like image 185
Dave Robinder Avatar answered Nov 14 '22 23:11

Dave Robinder