-
Notifications
You must be signed in to change notification settings - Fork 174
Assembly version issue #648
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
Comments
Could you try executing the script with |
That did the trick. I just read this for context: https://www.strathweb.com/2021/09/dotnet-script-1-2-is-out-with-assembly-isolation-feature/ I think adding that the readme would be a good idea. |
Looks like I stumbled upon the same! #663 |
I take it this is the same reason why referencing a NuGet package like When a script tries to pass a #637 mentions difficulties using isolated contexts, but doesn't specify what those difficulties are. Why isn't full isolation the default? |
Closed as resolved with |
Not all parts of .NET were ready for assembly isolation as of .NET 5.0 when this feature was first implemented. I don't remember the particulars, but there were omissions in assembly loading context during some reflection operations. This caused some packages to fail. Probably we should review the default setting for isolated load context after .NET 8.0 is released, as there is a great chance that outstanding issues in .NET had been already fixed. |
@hrumhurum I think |
@hrumhurum I have a branch here that runs all tests in isolated load context. It is just one failing test (ShouldHandlePackageWithNativeLibraries). It is a test that also loads native dll's |
@seesharper I'll give it a shot. I'll post the results here. |
Thanks ❤️ |
@seesharper When I try to run tests in https://github.com/dotnet-script/dotnet-script/tree/default-isolation-context branch, |
Hi,
Since Google implied that it's related to assembly resolution, I'm posting a link here to the issue that I reported
googleapis/google-api-dotnet-client#2009
My references:
I get error:
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)
The text was updated successfully, but these errors were encountered: