Windows warns that My App is a virus??

Hello!

So I made this app to upload some files to my web server regularly. But when I try to run it, both windows and Avast detect it as a virus. So now writing an app to upload some files to the cloud have become a malicious act?

It seems the modern approach is to basically white-list all the "known good programs" and everything else is a virus.

Also in part, any unknown program which accesses the internet is higher on the threshold of suspicious behaviour.

You can normally configure your AV to exclude directories from being scanned.

So if for example, you develop exclusively in C:\mycode, you could add that as an excluded directory in your AV.

Got it. Thanks for the clarification. Cuz this was bugging me for like a few months now. Some apps I developed and work completely OK earlier, suddenly Windows itself detects as PUPs. It's not even Windows defender, directly from the system. Wow.