Visual Studio 2010/2012 have to rebuild instead of build
When I hit build or start in visual studio to start my Asp.Net 4.0 web
application, it fails to compiles and gives me the following errors:
Error 152 The type 'System.Net.Http.HttpResponseMessage' is defined in
an assembly that is not referenced. You must add a reference to assembly
'System.Net.Http, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'.
If I hit ReBuild in the Build drop down, it compiles fine. Happens in both
2010 and 2012 versions of visual studio. Any ideas?
It all started when I added a reference to System.Net.Http.
No comments:
Post a Comment