Author Topic: MSVC 2022  (Read 899 times)

jbk

  • Sr. Member
  • ****
  • Posts: 292
    • View Profile
MSVC 2022
« on: August 01, 2023, 07:27:12 AM »
after ditching MSVC from my PC because it was generating code that Windows defender identified as Trojan I went ahead and installed in a Win 11 VM and I must say that it has amazing code analysis, it found many of my coding errors giving appropriate  warnings
I learned to take almost every warning seriously  ;D

bprlhe

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: MSVC 2022
« Reply #1 on: August 01, 2023, 09:30:52 AM »
after ditching MSVC from my PC because it was generating code that Windows defender identified as Trojan

This is Windows Defender's fault. Why didn't you simply add your working directory to the whitelist?

https://support.microsoft.com/en-us/windows/add-an-exclusion-to-windows-security-811816c0-4dfd-af4a-47e4-c301afe13b26#ID0EBF=Windows_10

Your code has unexpected behaviors that resemble malware. Please test if a simple Hello World program in C++ triggers Windows Defender or not. If it doesn't, this is simply a false positive and MSVC has nothing to do with it.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 2392
    • View Profile
Re: MSVC 2022
« Reply #2 on: August 02, 2023, 08:46:52 AM »
I've been a fan of the Exclusion list for years.

I have dozens of folders and entire backup drives in my list. 

About the only areas that MS Defender has access to on my system are the core Windows OS folders.

I'm very careful about sites that I visit, links that I click, and software that I download. 

My computers behave very well and I very seldom have to waste my time chasing down false positives.