Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ragnarol
Copy link
Contributor

Set current directory to the assembly base path on the Run method so the service runs in that folder.

Something similar is done in topshelf

https://github.com/Topshelf/Topshelf/blob/develop/src/Topshelf/Runtime/Windows/WindowsServiceHost.cs#L58

@PeterKottas
Copy link
Owner

Looks good mate! Thanks a lot. Seems this will make life easier for a few people who struggled with some unexpected exceptions. I'll run a few tests later on today and hopefully merge it asap. Cheers!

@ragnarol
Copy link
Contributor Author

Cool once the new version is released I could drop the line I added in my startup to handle this scenario :)

@PeterKottas PeterKottas merged commit 2287c19 into PeterKottas:master Sep 29, 2017
@PeterKottas
Copy link
Owner

Merged and released as version 2.0.1. Thanks again mate ;)

@ragnarol ragnarol deleted the service-root-directory branch September 29, 2017 12:22
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.

2 participants