I have copied (testing as I go), transferring from a fully working NET 9 Framework Forms App to a NET 9 Code? App (BTW what is the correct way to differentiate types of project?).
All the code works fine EXCEPT for 1 line:
Process.Start(“devenv.exe “, TempFile);
which throws:
System.ComponentModel.Win32Exception: ‘An error occurred trying to start process ‘devenv.exe ‘ with working directory ‘C:UsersxxxxxxDocumentsProjectsFindInFiles2FindInFiles2binDebugnet9.0-windows’. The system cannot find the file specified.’
What is needed here to fix that? I have checked out ProcessStartInfo with no success.
At a loss as to avenues to try. I did check out ProcessStartInfo to see if there was anything there pertinent to Working Directory but none found. All files and folders do exist, including the TempFile.
user24817479 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1