Build server woes: can’t resolve System.Net.Http 2.0

I got the infamous (but badly documented) “<dependency.dll> could not be resolved because it has an indirect dependency on the framework assembly “System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which could not be resolved in the currently targeted framework.” after adding a new component to our Jenkins build server. The linked article has some great info, but the *still* undocumented part is that you need to put a specific version of the library into “C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0”. HERE IS THE PACKAGE: http://www.nuget.org/packages/System.Net.Http

Argh! What a pain in the butt.

Advertisements
Link | This entry was posted in Continuous Integration and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s