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

0.32.2: System.IO.FileLoadException: Could not load file or assembly SharpCompress #694

Closed
hhyyrylainen opened this issue Sep 7, 2022 · 3 comments

Comments

@hhyyrylainen
Copy link

I get the following exception whenever I try to use any sharpcompress code:

System.IO.FileLoadException: Could not load file or assembly 'SharpCompress, Version=0.32.2.0, Culture=neutral, PublicKeyToken=afb0a02973931d96'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'SharpCompress, Version=0.32.2.0, Culture=neutral, PublicKeyToken=afb0a02973931d96'

However, this seems to happen only with the latest version on nuget. When using the older version 0.32.1 I don't get any such errors and can create compressed files just fine.

I found this already closed issue when trying to find what the problem was: #591 so perhaps a similar issue has popped up again?

I'm using dotnet 6.0.108 on Linux.

@adamhathcock
Copy link
Owner

A bit of mystery as 0.32.2 didn't change the csproj or references. Not sure what has been done stop the assembly to load.

0.32.1...0.32.2

@Erior
Copy link
Contributor

Erior commented Sep 14, 2022

To me it sounds like it does not replace the dll when you run the new project, check the dll in the directory with your application and your nuget cache.

@hhyyrylainen
Copy link
Author

I just tested again and I guess this was a nuget cache issue or something like that. I did try all of the various command line flags to ignore caches but it didn't work before. I had issues with another library (which didn't turn out to be a nuget problem), which lead me to delete all of my package caches I could find, which likely made my attempt work now.

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

No branches or pull requests

3 participants