A set of .NET Framework managed libraries for developing graphical user interfaces.
Hi @Yuvaraj Masilamani ,
Thanks for reaching out.
What you're seeing seems consistent with how Smart App Control can behave when it is running in enforcement mode. A project can still build normally in Visual Studio, but the app may be blocked when it starts if the executable is unsigned or not yet recognized as trusted.
There usually isn't a Visual Studio setting that overrides that behavior for local development builds. In most cases, the practical options are to test on a device or VM where Smart App Control is not enforcing, keep it in Evaluation mode while validating the app, or sign the build with a trusted code-signing certificate.
If you'd like to confirm whether Smart App Control is what is stopping the launch, you can check Event Viewer under Applications and Services Logs > Microsoft > Windows > CodeIntegrity > Operational. Event ID 3077 is typically associated with enforcement blocks, and 3076 is generally used for audit or evaluation scenarios.
If helpful, these Microsoft references go into a bit more detail on the behavior and the available testing options:
Smart App Control overview: https://learn.microsoft.com/en-us/windows/apps/develop/smart-app-control/overview
Test your app's signature with Smart App Control: https://learn.microsoft.com/en-us/windows/apps/develop/smart-app-control/test-your-app-with-smart-app-control
Smart App Control FAQ: https://support.microsoft.com/en-us/topic/what-is-smart-app-control-285ea03d-fa88-4d56-882e-6698afdb7003
Hope this helps! If my answer was helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.