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
During the compilation of my project, an error arises because of a type conflict involving 'MessageOptions' originating from two distinct libraries: 'Google.Protobuf' and 'protobuf-net.Reflection'.
The project references both 'WireMock.Net' and 'Google.Protobuf'. Upon updating both libraries to version 1.5.49 for 'WireMock.Net' and version 3.25.3 for 'Google.Protobuf', this compilation error surfaces. The conflict emerges as 'WireMock.Net' starts utilizing 'protobuf-net.Reflection', thereby resulting in the existence of the 'MessageOptions' class within the same namespace in both libraries.
Expected behavior:
Compilation should proceed without errors, ensuring the successful build of the project.
Test to reproduce
Ensure project references 'WireMock.Net' and 'Google.Protobuf'.
Update 'WireMock.Net' to version 1.5.49 and 'Google.Protobuf' to version 3.25.3.
Attempt to compile the project.
Encounter the error message due to the type conflict with 'MessageOptions'.
The text was updated successfully, but these errors were encountered:
@StefH I'm sorry for not getting back to you sooner. I forgot this thread.
The sample code below can trigger the issue ConsoleApp1.zip
Once you build the solution, you will see the error.
Describe the bug
During the compilation of my project, an error arises because of a type conflict involving 'MessageOptions' originating from two distinct libraries: 'Google.Protobuf' and 'protobuf-net.Reflection'.
The project references both 'WireMock.Net' and 'Google.Protobuf'. Upon updating both libraries to version 1.5.49 for 'WireMock.Net' and version 3.25.3 for 'Google.Protobuf', this compilation error surfaces. The conflict emerges as 'WireMock.Net' starts utilizing 'protobuf-net.Reflection', thereby resulting in the existence of the 'MessageOptions' class within the same namespace in both libraries.
Expected behavior:
Compilation should proceed without errors, ensuring the successful build of the project.
Test to reproduce
Ensure project references 'WireMock.Net' and 'Google.Protobuf'.
Update 'WireMock.Net' to version 1.5.49 and 'Google.Protobuf' to version 3.25.3.
Attempt to compile the project.
Encounter the error message due to the type conflict with 'MessageOptions'.
The text was updated successfully, but these errors were encountered: