-1

image

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

CJ Dennis
  • 4,226
  • 2
  • 40
  • 69
  • Actually, I think it may have objected to `DemoPlayer.dll`. Have a look at the Defender Protection History to check. Also, please post error messages as text, not images or links to images. – Paul Sanders Dec 18 '19 at 21:24
  • **1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: The command "copy C:\Users\TERMINATOR\Desktop\NorAdrenaline\Release\NorAdrenaline.dll ..\bin 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(149,5): error MSB3073: :VCEnd" exited with code 1. Done building project "NorAdrenaline.vcxproj" --FAILED. Build: 0 succeeded, 1 failed** I already restored all detections in Defender and no, it happens on any project, i use VS 2019 – my name is jef Dec 18 '19 at 21:26
  • EDIT: I found issue. Its in project solution but i dont know where to fix it. https://i.imgur.com/TEz4q4Z.png it cant find path or something – my name is jef Dec 18 '19 at 21:44
  • Looks like your post-build step. You can edit that in the configuration pages. Please stop posting [links to] images. – Paul Sanders Dec 18 '19 at 22:01
  • l think you should check the post build event or pre-build event (Right-click on your project-->Properties-->Build Event) to see whether the command executes correctly. And the `exited with code 1` means system cannot find the specific files. And l found that the command is doing an copy task, so please check whether the original file and destination folder paths are correct or accessible. In addition, you could share the commands with us which could be helpful to sovle your issue. – Mr Qian Dec 19 '19 at 10:37

1 Answers1

0

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.

Mr Qian
  • 21,064
  • 1
  • 31
  • 41