-
Notifications
You must be signed in to change notification settings - Fork 42
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
When the build task is run it should remove imported modules #87
Comments
When you say "any changes to the builds". Can be more specific? I'm not sure if you're talking about |
My thought was that the task |
Thanks for clarification. We could list the top folders and |
Let’s assume that the top level folder have the same name as the module. If a module maintainer want to have the functionality they use that pattern, or they have to build there own task. So let’s go with your suggestion as that will solve the immediate problem (my issue). :) |
To be able to test modifications after build, I added a ReImport task to the build workflow, and added the following script block: ReImport: |
{
Import-Module MyModule -Force
} I couldn't find a variable instead of hard coding the module's name |
Try this: Have been meaning to add this as a task to Sampler. Thought it only works as long as the module does not use classes or assemblies that change between builds. This is run before the |
Thanks @johlju, it works. This solution is good enough for me as I don't use classes/assemblies (yet). |
When the build task is run it should remove imported modules that exist in the folder Modules. The problem is that the modules remain imported after a build and any changes to the builds are not imported. The task Clean could remove any imported modules because it is run prior to the module is built.
The text was updated successfully, but these errors were encountered: