I have a dual boot computer (Linux Debian 11 and Windows 10). Inside Debian, on my NTFS D disk, I created a folder to perform programming tests.
After accessing that folder with Windows, I created a new project in Visual Studio inside that same folder that I had created in Linux. Even going straight to the folder where the application's executable was and clicking directly on it, I still received the access denied error message. I took the project out of the folder I had created in Linux, and it worked.
Because the folder where my project was was created in Linux, for some reason, Windows didn't trust this folder, so it didn't allow running executables from inside that folder, even with this one executable having been created by Visual Studio from within Windows.