Skip to content

Add zip files in working directory to assembly search path #193

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AeroXuk
Copy link

@AeroXuk AeroXuk commented Jul 31, 2019

This change extracts any zip files within the working directory and adds the extracted folders to the assembly search path. When combined with the --files parameter allows you to copy the application dependencies to all workers and adds them to the assembly search path.

Fixes #192

FileInfo[] archives = new DirectoryInfo(Directory.GetCurrentDirectory())
.GetFiles("*.zip");
foreach (var archive in archives)
{
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, rather than extracting all .zip files within the folder. I would prefer to extract only the applications .zip file if present. I don't, however, know the project well enough to know if it is possible to access the application .zip parameter that's passed to DotNetRunner from C#.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #194 as an alternative way of potentially implementing this.

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

Successfully merging this pull request may close these issues.

[FEATURE REQUEST]: Add Application .Zip file contents to Assembly Search Path
1 participant