Hi, I'm a developer and McAfee blocked my visual studio compilation since last few hours with the following message:
DOMAIN\Michele.Pannacci ran C:\Program Files\Microsoft Visual Studio\2022\Professional\Msbuild\Current\Bin\Roslyn\VBCSCompiler.exe, which attempted to access C:\Users\Michele.Pannacci\Desktop\TS\TS\obj\Release\TS.exe. The Trojan named PWS-FCQR!130853FDC1AB was detected and deleted.
How can be this be possible? Please help
Hi @MichelePannacci ,
Greetings From Mcafee,
This issue might be related to an application update or the computer recent update which might changed some settings . so kindly try running a Full scan or either Reinstall the software and check if the issue Persist and update us the outcome .
Regards
Nagesh G
Hi Nagesh_G and thanks but the problem is elsewhere and weird. In fact i introduced an innocent variable:
--------------------------------------------
public int[] _DefaultFilters { get; set; }
public int[] DefaultFilters
{
get
{
return _DefaultFilters;
}
set
{
_DefaultFilters = value;
}
}
--------------------------------------------
then if I change type (array to List) the error goes away.
--------------------------------------------
public List<int> _DefaultFilters { get; set; }
public List<int> DefaultFilters
{
get
{
return _DefaultFilters;
}
set
{
_DefaultFilters = value;
}
}
--------------------------------------------
no matter if I change naming, i.e. _DefaultFilters/DefaultFilters to something else. Besides the fact that this thing is almost impossible to debug, to me looks a big bug in the antivirus that associates this structure with malicious code.
Things get even worse. If I write this litte pieces of code:
new int[] { 1, 2, 3, 4, 5, 6 };
McAfee says my program is a trojan. If I add a zero all goes well. What's up??
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.
Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership: