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

Dependency Error #5

Open
uGuardian opened this issue Dec 8, 2024 · 8 comments
Open

Dependency Error #5

uGuardian opened this issue Dec 8, 2024 · 8 comments

Comments

@uGuardian
Copy link

Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1

May be related to why System.Text.Json 8.0.4 is flagged as having a high vulnerability.

The current Unity version I'm working with is 2019.3.15f1

The latest release of this has worked for me in the past in Unity 2021.3.28f1, but changing the project version of my current one to that still results in the same assembly error.

@ds5678
Copy link
Contributor

ds5678 commented Dec 8, 2024

@uGuardian
Copy link
Author

uGuardian commented Dec 8, 2024

Apologies for insufficient initial info, I already was installing it via NuGet for Unity, and still getting this issue.

@ds5678
Copy link
Contributor

ds5678 commented Dec 8, 2024

See if installing System.Text.Json 9 changes anything.

@uGuardian
Copy link
Author

Immediately results in a broken assembly error on AssetRipper.Mining.PredefinedAssets, and trying to run the json factory anyways gives a Could not load file or assembly 'System.Text.Json, Version=8.0.0.0
(I'd assume it's a strongly named assembly or something, so it can't find it without being recompiled)

Also tried System.Text.Json versions 8.0.5 and 8.0.0, but both of those just resulted in the same error about the CompilerServices.Unsafe library.

@ds5678
Copy link
Contributor

ds5678 commented Dec 9, 2024

Is your project targeting .NET Framework or .NET Standard?

@uGuardian
Copy link
Author

.NET Standard

@ds5678
Copy link
Contributor

ds5678 commented Dec 9, 2024

With the other development priorities on my plate, I do not currently have time to investigate this. I'll probably look into it during the week after Christmas.

@uGuardian
Copy link
Author

uGuardian commented Dec 9, 2024

Got it, I completely understand, I've been in the same position myself.

If I had one suggestion for a potential quick fix, it'd be to upgrade the text.json version up to 9 and then recompile it and push it as a NuGet update.
I'd try recompiling it myself except not all the project files needed to compile this repo are available, even in the other repos on your account as far as I can tell.

Don't feel obligated to try this right now though. I completely understand being in development priority hell.

Edit: I'm an idiot, the missing projects are just subprojects of the main repo, I'll try recompiling it myself.

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

2 participants