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

Consider setting the CurrentDirectory in the template code #17

Open
baronfel opened this issue Mar 25, 2019 · 0 comments
Open

Consider setting the CurrentDirectory in the template code #17

baronfel opened this issue Mar 25, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@baronfel
Copy link

Often when an application is run under the ionide debugger, the System.Environment.CurrentDirectory is set to that of the debugging instance, which is somewhere inside the user home. This causes relative-path file lookups, like a bundled sqlite database for example, to fail. Should the template include code to set the System.Environment.CurrentDirectory to the location of the currently-executing assembly(System.Reflection.Assembly.GetExecutingAssembly().Location)? This was inspired by a troubleshooting session I had this morning with a Slack user in #web.

@cartermp cartermp added the enhancement New feature or request label Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants