so it happened because Windows defender was doing some process and it edited somehow because windows defender detected my visual studio output file as dangerous trojan or something.
I really don't know what to do, please help
so it happened because Windows defender was doing some process and it edited somehow because windows defender detected my visual studio output file as dangerous trojan or something.
I really don't know what to do, please help
windows defender modified Microsoft.CppCommon.targets
The issue is caused by the wrong command line which is written in the post-build event or pre-build event of Configuration pages just as Paul said. You can see this.
Please check it by Right-click on your Project-->Properties-->Configuration Properties-->Build Event-->Pre-Build Event/Post-Build Event/Pre-Link Event-->Command Line
.
The command in your project is like this:
copy xxxxxxxxx\Noradrenaline.dll ..\bin
If the Noradrenaline.dll
is the output file of your project, you should write the command in the post-build event(This event executes after the build finishes and the corresponding output file can only be found after the build).
Besides, if Noradrenaline.dll
is not the output file of the project, please make sure the path is accessible and the bin
folder already exists.
In addition, from the perspective of your command, you want to copy a specific file to a folder.
The destination address of the copy command must include the name of the file, such as .. \ bin \ Noradrenaline.dll
.
xcopy path1 path2
path1 is the path of the source file(like xxx\xxx.dll), path2 is the destination address and you also remember adding the name to the destination address( like xxx\xxx.dll).
To sum up, if both two paths can access without any problems, you would better write like this:
copy xxxxxxxxx\Noradrenaline.dll ..\bin\Noradrenaline.dll
Hope it could help you.