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 isolation #5

Closed
ThanhPhanz opened this issue Jul 3, 2024 · 2 comments
Closed

Dependency isolation #5

ThanhPhanz opened this issue Jul 3, 2024 · 2 comments

Comments

@ThanhPhanz
Copy link

I realized that when I inherit my command from ExternalCommand, it can no longer get value from static variables or settings. I think it's because the add-in was loaded from another assembly. Is there any other way to approach this problem?

@Nice3point
Copy link
Owner

@ThanhPhanz You can use static variables, but they must all be used within the same context, i.e. all commands must inherit from ExternalCommand and the application from ExternalApplication. If you initialize the settings in IExternalApplication it won't work, ricaun showed this here https://www.youtube.com/watch?v=cpy4J_6-8WY

@ThanhPhanz
Copy link
Author

It works. Thank you

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