-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Moq to version 4.2 #15
Conversation
@kevinkuszyk the build fails (https://teamcity.bbv.ch/viewLog.html?buildId=3580&buildTypeId=bt34&tab=buildLog) you can login as guest. Can you please have a look into it? We had some troubles with the builds lately. Come back to me if you think it is a build server related issue. |
I've fixed the initial build errors, but now the silverlight-5.0 version is not building. I'm not sure why - can you take a look let me know what's wrong? |
Will have a look into it tomorrow |
@philippdolder did you ever get a chance to look at this? How close to having a stable release from master are you? It looks like Moq 4.1 restriction has already been lifted there and that would enable us to upgrade. |
Please consider upgrading to Moq 4.2 |
@kevinkuszyk I'm sorry. couldn't look into it :-( |
@philippdolder I'll try to find some time next week to update it. |
@philippdolder I've updated Moq to the latest. It builds fine in VS, but not with the I also updated NSubstitute while I was there. |
@kevinkuszyk Sorry, I was sick the last couple of days. |
Initially I get the following error when running the script
Is that the same error that you get? The problem is the following:
Then I can build, except for SL-5.0, which I don't know how to solve yet. I need to talk to @remogloor regarding this, as I didn't have a deep look inside, yet. Cheers, |
Hi Phil, Yes, I followed the instructions in I just pushed an update, and all is building locally again except for the Silverlight version. Kevin. |
Hi Kevin, ok, thanks. I try to talk to @remogloor asap on what we are still missing to make it work with SL 5 as well. Phil |
Hi Kevin, I was finally able to talk to @remogloor about this issue. The current prerelease of Ninject.MockingKernel.Moq already supports Moq 4.2 ([4.0, 5.0) to be precise). Unfortunately, IMO there is a flaw in Nuget which uses the smallest possible version of a dependency, instead of the newest possible version. There is only a need to update the Moq, NSubstitute etc. dependencies when they change their interface. To use Ninject.MockingKernel.Moq with the latest version of Moq perform the following steps in the Nuget Package Manager Console
This will install and update to the latest prerelease versions of Ninject.MockingKernel.Moq and it's ninject dependencies as well as to the latest stable Moq version. This should resolve your issue without the need to update Ninject.MockingKernel. |
Thanks Phil. I'd noticed the the pre-release packages had their dependency requirements relaxed. Can we get stable build released to nuget? Whilst I'm ok using pre-release packages in test projects, not everyone can / will. I'll close this PR, and open a new issue for publishing a new stable version to Nuget. |
Hi Remo,
I've updated the Moq package to the latest 4.1 today. I also updated the FluentAssertions dependency to use the NuGet package.
Can you push this update to NuGet as we want to update our solution to to the latest Moq, but we are blocked at the moment by Ninject.MockingKernel.Moq.
Thanks,
Kevin