I am working on a VB.Net application and recently installed Visual Studio Community Edition 2019 on my workstation. My development team is using Azure DevOps for version control. Whenever I clone the repository for the project at my new workstation, I am not able to run it, in Debug or Release mode, after making any changes. When I first load a branch, the project will run, but as soon as I make any code edits that are not just notes, or make any property changes in the visual designer, I get the error message. Oddly only a couple of weeks ago I was able to work on a new workstation with no issues.
I have tried uninstalling and reinstalling Visual Studio 2019 Community Edition, deleting and cloning the repo again, pushing changes and syncing them, checking "Use Managed Compatibility Mode" under Tools|->Options->Debugging->General, cleaning and rebuilding the project, Changing the Target CPU from AnyCPU to x86, to x64, and unchecking "Prefer 32-bit". None of that worked, the problem persists.
Below is a simple change that causes the error to occur (just an example, any edit seems to cause the error to occur) -
Original:
TableLayoutPanel1.BackColor = MainAreas
Label1.ForeColor = TextColor
Minor Edit:
Dim thisVariable As String = ""
TableLayoutPanel1.BackColor = MainAreas
Label1.ForeColor = TextColor
I would expect to be able to edit a cloned repository and still be able to run it and/or debug it. But every edit from visual to code changes results in the error message described in the title - "Error while trying to run project: Unable to start program 'program_name.exe'. The request is not supported."