I copied this snippet from the Microsoft website and when I compiled it in Visual Studio community, Kaspersky quarantined it: https://docs.microsoft.com/en-us/dotnet/api/system.io.file?view=netframework-4.8
I am learning Windows C# programming, when I write code to open a file, I get the above and the exe I created is quarantined. How can I stop this from happening?