Appveyor.MSBuildLogger.dll missing from BYOC Agent folder
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
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
Support Staff 1 Posted by Feodor Fitsner on 22 Jul, 2021 05:00 PM
What kind of BYOC is that? What command did you use to create/build the cloud?
2 Posted by matt_mckinstry on 22 Jul, 2021 05:19 PM
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 ""
Support Staff 3 Posted by Feodor Fitsner on 22 Jul, 2021 05:25 PM
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 beC:\Program Files\AppVeyor\BuildAgent\netfx\Appveyor.MSBuildLogger.dll
4 Posted by matt_mckinstry on 22 Jul, 2021 05:45 PM
Worked a treat, thanks