Version 1.11.0 seems to have a dependency to non-existing version of JetBrans.Annotations #714

Closed
opened 2025-12-29 15:31:41 +01:00 by adam · 7 comments
Owner

Originally created by @HumanPrinter on GitHub (Aug 27, 2025).

Originally assigned to: @StefH on GitHub.

Describe the bug

When running a unit test using WireMock.Net version 1.11.0, a System.IO.FileNotFoundException is being thrown when calling WireMockServer.Start()
The exception message is:

Could not load file or assembly 'JetBrains.Annotations, Version=4242.42.42.42, Culture=neutral, PublicKeyToken=1010a0d8d6380325'. The system cannot find the file specified.

Expected behavior:

WireMockServer.Start() should finish without exception as it did in version 1.10.1

Test to reproduce

Target framework: .NET 8.0 (but .NET 9.0 gives the same error).
IDE: Visual Studio 2022 (but pipeline in Azure DevOps gives the same error)

Originally created by @HumanPrinter on GitHub (Aug 27, 2025). Originally assigned to: @StefH on GitHub. ### Describe the bug When running a unit test using WireMock.Net version 1.11.0, a `System.IO.FileNotFoundException` is being thrown when calling `WireMockServer.Start()` The exception message is: ``` Could not load file or assembly 'JetBrains.Annotations, Version=4242.42.42.42, Culture=neutral, PublicKeyToken=1010a0d8d6380325'. The system cannot find the file specified. ``` ### Expected behavior: `WireMockServer.Start()` should finish without exception as it did in version 1.10.1 ### Test to reproduce ### Other related info Target framework: .NET 8.0 (but .NET 9.0 gives the same error). IDE: Visual Studio 2022 (but pipeline in Azure DevOps gives the same error)
adam added the bug label 2025-12-29 15:31:41 +01:00
adam closed this issue 2025-12-29 15:31:41 +01:00
Author
Owner

@StefH commented on GitHub (Aug 27, 2025):

Seems to be a strange error from JetBrains.Annotations?

See also these links...
https://www.google.com/search?q=JetBrains.Annotations%2C+Version%3D4242.42.42.42

Maybe something with reflection / loading assemblies?

First I'll try to fix any new code which handles loading dll's and loading types, I'll create a new NuGet.
If that does not solve it, I'll revert JetBrains.Annotations.

@StefH commented on GitHub (Aug 27, 2025): Seems to be a strange error from JetBrains.Annotations? See also these links... https://www.google.com/search?q=JetBrains.Annotations%2C+Version%3D4242.42.42.42 Maybe something with reflection / loading assemblies? First I'll try to fix any new code which handles loading dll's and loading types, I'll create a new NuGet. If that does not solve it, I'll revert JetBrains.Annotations.
Author
Owner

@StefH commented on GitHub (Aug 27, 2025):

https://github.com/wiremock/WireMock.Net/pull/1352

@StefH commented on GitHub (Aug 27, 2025): https://github.com/wiremock/WireMock.Net/pull/1352
Author
Owner

@StefH commented on GitHub (Aug 27, 2025):

@HumanPrinter

In some time (1 hour max) a new version will be available, can you check that one?

@StefH commented on GitHub (Aug 27, 2025): @HumanPrinter In some time (1 hour max) a new version will be available, can you check that one?
Author
Owner

@StefH commented on GitHub (Aug 27, 2025):

https://github.com/wiremock/WireMock.Net/pull/1355

@StefH commented on GitHub (Aug 27, 2025): https://github.com/wiremock/WireMock.Net/pull/1355
Author
Owner

@HumanPrinter commented on GitHub (Aug 27, 2025):

I have tested with the latest version (1.11.1) but the error persists

@HumanPrinter commented on GitHub (Aug 27, 2025): I have tested with the latest version (1.11.1) but the error persists
Author
Owner

@StefH commented on GitHub (Aug 27, 2025):

1.11.2 will revert it, I'm building the NuGet now, please wait some time and retry.

@StefH commented on GitHub (Aug 27, 2025): 1.11.2 will revert it, I'm building the NuGet now, please wait some time and retry.
Author
Owner

@HumanPrinter commented on GitHub (Aug 27, 2025):

I can confirm that version 1.11.2 has fixed the issue. Thanks for the quick response

@HumanPrinter commented on GitHub (Aug 27, 2025): I can confirm that version 1.11.2 has fixed the issue. Thanks for the quick response
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#714