Visual Studio blocked by MS Defender

Pepe 0 Reputation points
2024-05-18T09:09:30.3366667+00:00

Microsoft defender blocked visual studio 2022 ( C#) and I can't enter windows forms, console, etc.

Please help.

Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
Microsoft Security | Microsoft Defender | Microsoft Defender for Identity
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud Apps
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-05-20T07:33:09.3466667+00:00

    Hi @Pepe, 

    Welcome to Microsoft Q&A! 

    Do you mean that the Windows Defender is blocking your VS2022 from running? Or you are unable to open the C# application in VS2022? If you have any error messages or warnings, please share them with us. 

    Please ensure that you have necessary permissions to system-level files or drivers, and run VS as administrator. 

    You can try to add your VS process or source folder to the Excluded items in Windows Defender settings:

    Settings > Windows Security > Virus & threat protection > Manage settings > Exclusions > Add or remove exclusions 

    Besides, the issue is more related to Windows Defender. You can also report it on Microsoft Defender forum. Thanks for your understanding! 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.