-
Notifications
You must be signed in to change notification settings - Fork 664
[wip] expose importAssemblies #16143
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
base: master
Are you sure you want to change the base?
Conversation
| else | ||
| { | ||
| var assembly = Assembly.LoadFile(path); | ||
| model.LoadNodeLibrary(assembly, true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or maybe I should add a new method directly in the model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a public method in ExtensionLibraryLoader that essentially redirects the call to DynamoModel.LoadNodeLibrary.
|
Trying my luck with a new public import method |
| cmdLineArgs.ImportedPaths?.ToList().ForEach(path => | ||
| if (cmdLineArgs.ImportedPaths != null) | ||
| { | ||
| CommandLineRunner.ImportAssembly(model, path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this function as well?
Purpose
exposing importAssemblies
Declarations
Check these if you believe they are true
*.resxfilesRelease Notes
(FILL ME IN) Brief description of the fix / enhancement. Use N/A to indicate that the changes in this pull request do not apply to Release Notes. Mandatory section
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of