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
I am encountering an issue in my framework 4.8 C# project related to FitSharp and MessagePack. Here are the details:
Project Context:
• My project targets either .NET Framework 4.8
• I am using FitSharp, and I am trying run tests using Runner.exe.
• Dependencies are managed through NuGet.
Specific Problem:
• A dependency (possibly transitively through MessagePack or FitSharp) requires System.Runtime.CompilerServices.Unsafe version **>= 6.0.0`.
• However, another dependency (or configuration) enforces version 4.0.0, which is incompatible.
3 . Exact Error Message:
__EXCEPTION__:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'MessagePackSerializerOptionsDefaultSettingsLazyInitializationHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MessagePack.Resolvers.StandardResolver' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MessagePack.Internal.StandardResolverHelper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MessagePack.Resolvers.DynamicUnionResolver' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MessagePack.MessagePackSecurity' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Observation:
• If I write a standalone program and directly reference the DLLs, it works perfectly.
• This suggests the issue is related to dependency resolution when using NuGet and not the DLL itself.
Thank for help.
The text was updated successfully, but these errors were encountered:
Can you elaborate on your test setup? I don't quite understand how you manage the dependency management via Nuget while running the tests with Runner.exe.
Hello everyone,
I am encountering an issue in my framework 4.8 C# project related to FitSharp and MessagePack. Here are the details:
Project Context:
• My project targets either .NET Framework 4.8
• I am using FitSharp, and I am trying run tests using Runner.exe.
• Dependencies are managed through NuGet.
Specific Problem:
• A dependency (possibly transitively through MessagePack or FitSharp) requires System.Runtime.CompilerServices.Unsafe version **>= 6.0.0`.
• However, another dependency (or configuration) enforces version 4.0.0, which is incompatible.
3 . Exact Error Message:
Observation:
• If I write a standalone program and directly reference the DLLs, it works perfectly.
• This suggests the issue is related to dependency resolution when using NuGet and not the DLL itself.
Thank for help.
The text was updated successfully, but these errors were encountered: