-
Notifications
You must be signed in to change notification settings - Fork 333
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
System.IO.FileLoadException: Could not load file or assembly ... Could not find or load a specific file with .NET 9 preview package #714
Comments
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 14, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 14, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 14, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 14, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 14, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 15, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 17, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 17, 2024
boylec
added a commit
to True-Velocity/Mapster
that referenced
this issue
Jun 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a similar issue to #635 in that an assembly is not being loaded when running Mapster.Tool 8.4.1-pre-1, but the error message is slightly different.
In #635 there is a FileLoadException with "The system cannot find the file specified."
I was seeing this with a different assembly and fixed it using the recommendations from that issue.
Fast forward ->
Then I added System.Text.Json for .NET 9 preview (which targets .NET 8)
Now I'm getting a System.IO.FileLoadException with "Could not load file or assembly ... Could not find or load a specific file"
.csproj:
dotnet-tools.json
stack trace:
This .dll can be found in my /bin/Debug/net8.0 folder at the time that I run Mapster.Tool.
I checked the assembly version on the generated .dll as well using powershell and everything matches for what the tool is trying to load (the assembly name, version, and public key)
Note: I censored absolute paths on my local hard drive with '...'
Any ideas? I'm flummoxed.
The text was updated successfully, but these errors were encountered: