Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have created a C# program and I recently noticed that when I merge my referenced .dlls into one executable .exe file using IL Merge, my Anti Virus (Avast) immediately deletes it and says that it's a virus. I always make lots of back ups so I tested the same thing with a back up from 2 days ago and I didn't experience this problem.

So I deleted my recent code line by line and noticed what is triggering the program to be detected as a virus. I have a void where I check if a list of files exist in a specified path (in my apps folder located in %appdata%). The void has around 8 File.Exists(path) commands and removing these 8 lines my program is no longer detected as a virus.

So my question is , is there any solution to this problem ? Why is my program detected as a virus just because i'm using File.Exists ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
885 views
Welcome To Ask or Share your Answers For Others

1 Answer

Have you provided an AssemblyInfo.cs with at least the "name, author and description" field (not the default values)? I had a similar issue about 1 year ago and this solved the problem for me.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...