Appveyor.MSBuildLogger.dll missing from BYOC Agent folder

matt_mckinstry's Avatar

matt_mckinstry

22 Jul, 2021 11:49 AM

Hi guys,

Just run into this one.

msbuild src\Setup.sln /t:Installers\Setup:Clean,Build /p:WarningLevel=0 /p:Configuration=$env:Configuration /p:Platform=$env:Platform /verbosity:quiet /m /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

MSBUILD : error MSB1021: Cannot create an instance of the logger. Could not load file or assembly 'C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll' or one of its dependencies. The given assembly name or codebase was inva
lid. (Exception from HRESULT: 0x80131047)
Switch: C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll

Appveyor.MSBuildLogger.dll missing from BYOC Agent folder when i RDP onto the VM

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Jul, 2021 05:00 PM

    Feodor Fitsner's Avatar

    What kind of BYOC is that? What command did you use to create/build the cloud?

  2. 2 Posted by matt_mckinstry on 22 Jul, 2021 05:19 PM

    matt_mckinstry's Avatar

    GCP - Windows 2019

    Connect-AppVeyorToGCE -AppVeyorUrl https://ci.appveyor.com -ApiToken REMOVED -Zone "us-central1-a" -VmSize n2-standard-8 -ImageName "CI" -ImageOs "Windows" -ImageTemplate "minimal-windows-server.json" -ImageFeatures "test_agent_build_tools_2019,dotnet_devpacks,dotnet_core_sdks,vs2019,xunit_20,nunit3,vstest_console_logger,python,wix311" -ImageCustomScript "" -ImageCustomScriptAfterReboot ""

  3. Support Staff 3 Posted by Feodor Fitsner on 22 Jul, 2021 05:25 PM

    Feodor Fitsner's Avatar

    MSBuild logger comes bundled with Build Agent. If you providing that entire msbuild src\Setup.sln /t:Installers\Setup:Clean,Build ... command in your build script the path to a logger must be C:\Program Files\AppVeyor\BuildAgent\netfx\Appveyor.MSBuildLogger.dll

  4. 4 Posted by matt_mckinstry on 22 Jul, 2021 05:45 PM

    matt_mckinstry's Avatar

    Worked a treat, thanks

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

12 Aug, 2022 08:39 PM
11 Aug, 2022 03:44 PM
07 Aug, 2022 05:11 PM
06 Aug, 2022 11:02 AM
03 Aug, 2022 10:03 AM

 

02 Aug, 2022 02:35 PM
29 Jul, 2022 06:45 PM
29 Jul, 2022 03:35 PM
22 Jul, 2022 03:16 PM
21 Jul, 2022 10:05 PM
15 Jul, 2022 03:08 PM