You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@djcparker System.Net.Http is a Framework reference. You can add them to the spec file, but I've been too lazy to because I have to look up for 402x platforms whether System.Net.Http is supported
@paulcbetts hmmm... I understand.. I've just had some fun behaviour with a PCL that is using refit. It causes winphone to fail with "could not load assembly version 4.0.0" - tracked it down to the PCL profile NOT including sl-winphone 8.0 so it had access to a v4.0.0 assembly.
Changing the profile to include sl-winphone 8 meant I could add the nuget version as refit does). Then the errors go away. Not clever...
Interestingly I created a new console app today and it did NOT get the error above. I'm going to compare them and see whats different.
Not sure if it is something I am doing or something missing in the nuspec .
Create a console app (4.5.1 is fine or an iOS app if you prefer). Use nuget to add refit. Compile the app.
Error: The type or namespace name 'Http' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) in RefitStubs.cs
This seems to happen for everything except winphone.
Note: it seems to go away if I add a reference to System.Net.Http...
Thoughts?
The text was updated successfully, but these errors were encountered: