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.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,726 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,228 questions
Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
163 questions
Microsoft Defender for Cloud Apps
Microsoft Defender for Cloud Apps
A Microsoft cloud access security broker that enables customers to control the access and use of software as a service apps in their organization.
113 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 26,731 Reputation points Microsoft Vendor
    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