Open devr24 opened 4 years ago
@devr24 did you ever get to the bottom of this? We're having the same issue
If you usually have antivirus software notifications turned off, it's worth checking whether the specific binary is not being recognized as a virus or a suspicious file.
As software development becomes more complex and you perform frequent builds, some "intelligent" antivirus programs may start identifying the output as a virus or suspicious software and removing it. If the main components of your software once become the target, the necessary binaries to build may be removed immediately with an alert. However, if you have turned off antivirus notifications (like Avast), you might not be aware that this is happening.
Additionally, many questions online related to CS2012 or similar build error issues are likely linked to this antivirus behavior and this is not VS / .NET issue. If this assumption is correct, then it's natural that "rebooting has no effect," as they mentioned.
My self-hosted build agent started reporting an error during dotnet build yesterday. Full command:
C:\agent\vsts-agent-win-x64-2.166.4\_work\19\s\src>"C:\Program Files\dotnet\dotnet.exe" build C:\agent\vsts-agent-win-x64-2.166.4\_work\19\s\src\Cloud.Core.Extensions.Nest\Cloud.Core.Extensions.Nest.csproj "-dl:CentralLogger,\"C:\agent\vsts-agent-win-x64-2.166.4\_work\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.168.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"*ForwardingLogger,\"C:\agent\vsts-agent-win-x64-2.166.4\_work\_tasks\DotNetCoreCLI_5541a522-603c-47ad-91fc-a4b1d163081b\2.168.0\dotnet-build-helpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll\"" --configuration release
Expected build to work fine. Actual output:
Project file for csproj is defined as:
Any ideas why? I added extra permissions to the folder for Reading/Writing that the agent uses, no joy. I also changed from Network Service to a higher privileged account and still get the issue. Restarted machine multiple times.
This was working up until yesterday. Thanks for any pointers in advance.