I would like to create small applications to manage my projects, should work so that after you select an item from the list of projects then the console changes the current directory to the project and exits program leaving you console in corect dir, then you can run, for example, vs code or http-server.
I tryed
Environment.CurrentDirectory = direcory
Directory.SetCurrentDirectory(directory)
neither of it worked for me :/