IssueRaiser

.NET: Failed to unload assemblies. Please check <this issue> for more information.

### Godot version Any 4.x version ### Issue description Assembly reloading can fail for various reasons, usually because a library used in tools code is not compatible with assembly unloading. After unloading has failed, C# scripts will be unavailable until the editor is restarted (in rare cases it may be possible to complete the unloading by re-building assemblies after some time). If assembly unloading fails for your project check [Microsoft's troubleshooting instructions](https://learn.microsoft.com/en-us/dotnet/standard/assembly/unloadability#troubleshoot-unloadability-issues) and ensure that you are not using one of the libraries known to be incompatible: - https://github.com/JamesNK/Newtonsoft.Json/issues/2414 - https://github.com/dotnet/runtime/issues/65323 If you know of additional libraries that cause issues, please leave a comment. If your code doesn't use any libraries, doesn't violate any [guidelines](https://learn.microsoft.com/en-us/dotnet/standard/assembly/unloadability#troubleshoot-unloadability-issues) and you believe unloading is blocked by godot, please open a new issue. Already reported causes are: - https://github.com/godotengine/godot/issues/79519 - https://github.com/godotengine/godot/issues/80175 [^1] - https://github.com/godotengine/godot/issues/81903 - https://github.com/godotengine/godot/pull/90837 [^1] ### Minimal reproduction project & Cleanup example ```csharp using Godot; using System; [Tool] public partial class UnloadingIssuesSample :

Posted by RedworkDE on Jun 21, 2023, 9:26 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

reliability (Software)

.NET: Failed to unload assemblies. Please check <this issue> for more information.

RedworkDEJun 21, 2023, 9:26 AM

### Godot version Any 4.x version ### Issue description Assembly reloading can fail for various reasons, usually because a library used in tools code is not compatible with assembly unloading. After unloading has failed, C# scripts will be unavailable until the editor is restarted (in rare cases it may be possible to complete the unloading by re-building assemblies after some time). If assembly unloading fails for your project check [Microsoft's troubleshooting instructions](https://learn.microsoft.com/en-us/dotnet/standard/assembly/unloadability#troubleshoot-unloadability-issues) and ensure that you are not using one of the libraries known to be incompatible: - https://github.com/JamesNK/Newtonsoft.Json/issues/2414 - https://github.com/dotnet/runtime/issues/65323 If you know of additional libraries that cause issues, please leave a comment. If your code doesn't use any libraries, doesn't violate any [guidelines](https://learn.microsoft.com/en-us/dotnet/standard/assembly/unloadability#troubleshoot-unloadability-issues) and you believe unloading is blocked by godot, please open a new issue. Already reported causes are: - https://github.com/godotengine/godot/issues/79519 - https://github.com/godotengine/godot/issues/80175 [^1] - https://github.com/godotengine/godot/issues/81903 - https://github.com/godotengine/godot/pull/90837 [^1] ### Minimal reproduction project & Cleanup example ```csharp using Godot; using System; [Tool] public partial class UnloadingIssuesSample :

Comments (0)

No comments yet. Start the discussion.

Comment on this issue