Having troubles building mission planner

Hi,

I have been trying to build Mission Planner with VS 2019, but each time I end up with the following errors :

‘ILoggerFactory’ does not contain a definition for ‘AddConsole’ and the best extension method overload ‘ConsoleLoggerExtensions.AddConsole(ILoggingBuilder)’ requires a receiver of type ‘ILoggingBuilder’

It seems that the method is obsolete with .net core 3.0…
I found that link https://docs.microsoft.com/fr-fr/aspnet/core/migration/logging-nonaspnetcore?view=aspnetcore-3.0 but I don’t know how I can change the code in order to fix that error.

Does anyone know how to fix that ?

Thanks for your help.

Dont build for .core 3.0 MP does not meant to use that target. Use Core 2.2 and .net 4.6.1 for target.

Thanks a lot !
It works perfectly fine now.

Hello,

I have installed VS 2022 with vs2022.vconfig: “https://raw.githubusercontent.com/ArduPilot/MissionPlanner/master/vs2022.vsconfig” and the Mission Planner repository was cloned from: “GitHub - ArduPilot/MissionPlanner: Mission Planner Ground Control Station for ArduPilot (c# .net)”.

When tried to build the MissionPLanner.sln, encountered multiple errors. Tried different ways to solve it which are available online but the build was not complete.

Can you please guide me on how to build the file. Is there any file missing in the main repository which needs to be added?

Please help me with this.

Thank you for your help.