Skip to content
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

WireMock.Net is not compatible with Microsoft.VisualStudio.Web.CodeGeneration.Design 3.1.1 #448

Closed
igorquintaes opened this issue Mar 30, 2020 · 18 comments
Labels

Comments

@igorquintaes
Copy link

While building or trying to install WireMock package, throws a conflict error on "Microsoft.CodeAnalysis.CSharp" dependency.

WireMock.Net expects 2.10.0 version exactly on "Microsoft.CodeAnalysis.CSharp".
Microsoft.VisualStudio.Web.CodeGeneration.Design 3.1.1 refers version 3.3.1 of "Microsoft.CodeAnalysis.CSharp" package.

@StefH
Copy link
Collaborator

StefH commented Mar 30, 2020

Which framework do you use?

@igorquintaes
Copy link
Author

.NET Core 3.1

Tried also with preview version of WireMock, based on other issue similar problem, but same error.

@StefH
Copy link
Collaborator

StefH commented Mar 30, 2020

There is no direct reference to Microsoft.CodeAnalysis.CSharp

However, I use CS-Script.Core, but that one does not have a fixed version:
image

The version from Microsoft.CodeAnalysis.CSharp is greater or equal to 2.10.0

@StefH StefH added the question label Mar 30, 2020
@StefH
Copy link
Collaborator

StefH commented Mar 30, 2020

You mean this issue ? #447 ?

@StefH
Copy link
Collaborator

StefH commented Mar 30, 2020

OK, I see your error:
image

@StefH StefH added bug and removed question labels Mar 30, 2020
@StefH
Copy link
Collaborator

StefH commented Mar 30, 2020

oleg-shilo/cs-script.core#7

@StefH
Copy link
Collaborator

StefH commented Mar 30, 2020

@mc0re & @igorquintaes
Can you please try new version from MyGet : WireMock.Net.1.2.2-ci-13091 ?

Maybe you still have to reference some library manually in your main project, I did not have time to test.

@mc0re
Copy link

mc0re commented Mar 30, 2020

I will as soon as it gets through to our nuget mirror...

@igorquintaes
Copy link
Author

@mc0re & @igorquintaes
Can you please try new version from MyGet : WireMock.Net.1.2.2-ci-13091 ?

Maybe you still have to reference some library manually in your main project, I did not have time to test.

Now there is another conflict detected:
Microsoft.VisualStudio.Web.CodeGeneration.Design 3.1.1: Microsoft.CodeAnalysis.Common (= 3.3.1)
CS-Script.Core 1.3.1: Microsoft.CodeAnalysis.Common (= 3.4.0)

There is no need to solve my problem in urgency, since CodeGeneration is not a required package to my team; but i am glad for your fast response and to try helping us. Is possible that mc0re issue is a little different, since i am getting trouble on build, and mc0re is on runtime.

@StefH
Copy link
Collaborator

StefH commented Mar 31, 2020

@igorquintaes : Do you really need that Microsoft.VisualStudio.Web.CodeGeneration.Design ?

Because this answer suggest to remove it : https://stackoverflow.com/questions/50689098/how-can-i-upgrade-from-net-core-2-1-rc1-to-the-stable-version-of-net-core-2-1/50788326#50788326

@igorquintaes
Copy link
Author

For now I don't, as I told that the package is not required to my team. Before open this issue, I removed it from project and worked fine, so and now i am working without that package. But in case of someone faces the same error, i decided to open a issue here.

@StefH
Copy link
Collaborator

StefH commented Mar 31, 2020

This issue is actually unsolvable because a fixed version is always needed.
I did ask a question here: dotnet/roslyn#42935

@StefH
Copy link
Collaborator

StefH commented Mar 31, 2020

I just got the answer, see dotnet/roslyn#42935.

So in your case, search for the last dependency which uses a fixed version, and update that version to the same as CS-Script.Core uses.

@StefH
Copy link
Collaborator

StefH commented Mar 31, 2020

@igorquintaes
Copy link
Author

Got it, looks nice. Would not be the case that CS-Script.Core add Microsoft.CodeAnalysis.CSharp.Workspaces on its dependencies, using the same version that themselves use? I don't know if you are a contributor in that lib too, but looks more a lib limitation than a problem that the final developer should be handle

@StefH
Copy link
Collaborator

StefH commented Mar 31, 2020

There are probably more libraries which use a fixed version. It's not possible for cs-script.core to include all these...

@StefH
Copy link
Collaborator

StefH commented Apr 1, 2020

I will close this issue with PR #449

OK ?

@igorquintaes
Copy link
Author

It is OK. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants