-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
After v4.8.0 upgrade and tests failing with missing netstandard, version=2.0.0.0 #567
Comments
@salixzs: Thanks for reporting. I am almost certain this is a duplicate of #566. (It's not an actual problem with Moq, but with .NET tooling: see dotnet/standard#481.) See solution posted in #566 (comment) and a more detailed explanation in #566 (comment). If this doesn't help then I'm afraid that according to #566 (comment), you might have to install .NET 4.7.1 or .NET Core support on the build server, or downgrade Moq to 4.7.145. Could you please briefly report whether the fix works for you? |
Solution did not worked for me, but I understood and got your point. Tried to traverse dependency tree to pinpoint exact problem, but either I am too stupid or I don't dig in right direction. |
@salixzs - Thanks for your understanding. I would definitely recommend the new "SDK-style" project file format, using I'm really sorry that you and others have to go through this kind of problem, I wish I could help more. But I also feel that this can probably only be fixed by Microsoft. |
@salixzs - just published an updated Moq 4.8.1 on NuGet, based on the idea in #566 (comment). Could you please check whether this resolves the issue you're having? |
This time it worked. All tests pass without missing file exception. |
I'm having a similar issue on Moq 4.8.1, explicitly that System.Threading.Tasks.Extensions cannot be found. It was working before we updated from a lower version (pre 4.8.0).
Downgrading back to 4.7.145 resolves the issue for me. |
@clottman - the same has been reported in #566 (comment) except for the assembly minor version. Can you perhaps post test code that repeoduces this over in #566 - thank you! |
Had same issue as @clottman with |
I also downgraded to |
The problem reported by @clottman still has not been fixed in |
Instead of downgrading |
@Mies75 - Downgrading |
What if I have another package that specifies a version of |
I've experimented a bit. If package It looks like there are really some problems with transitive dependencies resolution. =( I had similar issue when tried to test a project targeted for |
Struggled to the same issue with project targeting
Actually used Paket to generate the BRs... |
The same issue with Moq.4.11.0, TC server and console runner. I fixed it by downgrading but I'll try to upgrade a proj file later too |
After upgrading to Moq 4.8 on build server (where we do not have anything netstandard 2.0) started to fail with this:
Could this be related to recently added
<dependency id="System.Threading.Tasks.Extensions" version="4.4.0" />
packages.config:
Solution targets Full .Net Framework 4.6.2
The text was updated successfully, but these errors were encountered: