我的C#程序被检测为病毒? [英] My C# program is detected as a virus?

查看:151
本文介绍了我的C#程序被检测为病毒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个C#程序,最近我注意到,当我使用IL Merge将引用的.dll合并到一个可执行.exe文件时,我的反病毒(Avast)立即将其删除,并说这是一种病毒.我总是做很多备份,所以从2天前开始我就用备份测试了同一件事,但是我没有遇到这个问题.

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.

因此,我逐行删除了我最近的代码,并注意到是什么触发了该程序被检测为病毒.我在空白处检查指定路径(位于%appdata%中的我的apps文件夹中)是否存在文件列表.无效空间大约有8个 File.Exists(path)命令,并删除了我的程序不再被检测为病毒的这8行.

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.

所以我的问题是,这个问题有解决方案吗?为什么仅因为我使用 File.Exists 而将我的程序检测为病毒?

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 ?

推荐答案

您是否提供了一个AssemblyInfo.cs,其中至少包含名称,作者和描述"字段(不是默认值)?大约一年前,我遇到了类似的问题,这为我解决了这个问题.

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.

这篇关于我的C#程序被检测为病毒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆