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

nwn2server-dll folder is not searched by the .NET runtime #35

Open
CromFr opened this issue Nov 2, 2021 · 0 comments
Open

nwn2server-dll folder is not searched by the .NET runtime #35

CromFr opened this issue Nov 2, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@CromFr
Copy link
Member

CromFr commented Nov 2, 2021

This causes issues with xp_AuroraServerNWscript, that relies on the .NET runtime assembly resolution, and crashes the server during the first script execution if the dll are placed in nwn2server-dll.

Ideally this folder should be useable for any kind of DLL.

References

  • How the Runtime Locates Assemblies

    You can also make a dynamic reference to an assembly by providing the calling method with only partial information about the assembly, such as specifying only the assembly name. In this case, only the application directory is searched for the assembly, and no other checking occurs. You make a partial reference using any of the various methods for loading assemblies such as Assembly.Load or AppDomain.Load.

  • (Skywing) I'd probably look at whether it's possible to use _AppDomain.AppendPrivatePath https://docs.microsoft.com/en-us/dotnet/api/system._appdomain.appendprivatepath?view=netframework-4.8 from the outside world before loading anything, though that's cumbersome and annoying.

@CromFr CromFr added bug Something isn't working help wanted Extra attention is needed labels Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant