This particular application will not work with Visual Studio 2019 for Mac (since it relies on WPF - a Windows-only solution), but my website that generates mazes does work on macOS and Linux.įinding the differences in the working directory among Visual Studio 2019, Visual Studio Code, and the. NET Core is for them to run as consistently as possible in these various development environments. We can use Visual Studio 2019 we can use Visual Studio 2019 for Mac, we can use Visual Studio Code, or we can use the. NET Core is the set of options we have to build and run.
Here is the default "launch.json" file that was created by Visual Studio Code for the PeopleViewer project (from the launch.json file on the "UsingWorkingDirectory" branch): The specific application we are running is "PeopleViewer" - a WPF application that uses a dynamically-loaded SQL data reader. Setting the Working Directory in Visual Studio Code These branches will be noted when code is shown. To make things more interesting, some of the code samples use the "master" branch, and some use the "UsingWorkingDirectory" branch. We are specifically using the completed/04-DynamicLoading-Plugin folder. The code for this article is available on GitHub: jeremybytes-understanding-interfaces-core30. In Visual Studio Code, you can change the debugger / runner working directory in the "launch.json" file.
And that's just what the last article showed. The result is that an application that relies on the "current working directory" to find files will fail in strange ways.