vs 2022 access to path denied

Code Example - vs 2022 access to path denied

                
                        First check to see if you can delete the EXE. If you can't that means some process has a handle on it.

Run Process Explorer and do a search for TestApplication.exe to find what it is