Saturn.Template icon indicating copy to clipboard operation
Saturn.Template copied to clipboard

Consider setting the CurrentDirectory in the template code

Open baronfel opened this issue 6 years ago • 0 comments

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.

baronfel avatar Mar 25 '19 17:03 baronfel