Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My C# program is detected as a virus?

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 ?

like image 628
Harry Avatar asked Dec 04 '16 15:12

Harry


People also ask

How do I know my C-section is healing?

C-section scar recoveryYour wound will take about 6 weeks to heal. You will have a scar but this will fade over time. Your scar will be 10–20cm long and is usually just below your bikini line. It will be red at first but will fade over time.

How many cesarean delivery is possible?

However, from the current medical evidence, most medical authorities do state that if multiple C-sections are planned, the expert recommendation is to adhere to the maximum number of three.”

What happens in C-section?

a 10 to 20cm cut is made in your tummy and womb – this will usually be a horizontal cut just below your bikini line, although sometimes a vertical cut below your bellybutton may be made. your baby is delivered through the opening – this usually takes 5 to 10 minutes and you may feel some tugging at this point.

Which week is best for cesarean delivery?

Experts recommend that scheduled cesarean delivery be conducted from 39 weeks onwards [5], so that fetal maturity is complete.


2 Answers

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.

like image 135
Max Avatar answered Sep 26 '22 17:09

Max


Please change the "Guid" in AssemblyInfo.cs a little, then try again.

That worked for me.

like image 38
SuperBerry Avatar answered Sep 22 '22 17:09

SuperBerry