Why is Windows Security blocking my Visual Studio 2022 console application from running?

5 days ago 9
ARTICLE AD BOX

At first Gemini told me it's because it's inside the desktop, so I moved it to the C: drive and it still won't run. After that, it advised me to do some other stuff which didn't work either. Please help - I just want to run my code.

errors screenshot

The errors in text:

Microsoft Visual Studio:

Error while trying to run project: Unable to start program
'C:\VS projecs\2D_Array2.0\bin\Debug\2D_Array2.0.exe'.

An Application Control policy has blocked this file.

Windows Security

Part of this app has been blocked
Some features of Visual Studio Debugger Console Application Resources may not work because we can't confirm who published 2D_Array2.0.exe that the app tried to load.

When I opened Learn more, it opened a Microsoft web page which didn't help me much: support.microsoft.com/en-us/windows/…

Read Entire Article