Closed oschwald closed 9 years ago
@oschwald Thanks for creating the test repo. Noticed that you had an older version of kayak in the packages.config.
https://github.com/oschwald/http-mock-test/blob/master/ClassLibrary2/packages.config#L4 The default package install of HttpMock pulls in the latest version of Kayak is 0.7.2
I just created that solution for this and I installed HttpMock through NuGet. I did not install Kayak directly. Looking at the HttpMock NuGet page, there isn't a versioned dependency on Kayak. Maybe it would be worth updating that. I confirmed that upgrading Kayak to the latest version does fix the issue.
The issue is fixed in the latest version. The type wasn't there in the old version. The latest version of Kayak predates HttpMock. HttpMock was always written against 0.7.2
Nuget should pull in the latest version, not sure why it didn't in this case.
NuGet failed to pull the latest version both for this test project and my use in a real project. Is there a reason not to add a minimum version to the .nuspec
to prevent this in the future?
Nope don't see a reason, and will add it. Feel free to raise a PR too.
Per the NuGet v3 documentation, "NuGet restores the lowest possible version of a package as defined by its dependencies." However, I will close this issue given the above discussion.
This is a follow-up to my comment in #18. I created a test repo with a project that exhibits the issue for me with VS 2015. The dependencies were all installed with NuGet.
The full output when run by the NUnit runner is: