Servers by jDrones

Mission Planner failing to build using Visual Studio

After following the “Building Mission Planner with Visual Studio” guide (https://ardupilot.org/dev/docs/building-mission-planner.html) and trying to build Mission Planner, I am encountering several errors and the build is failing.

I am new to developing with Visual Studio so I may be making some silly errors but I have followed both the online guide and readme to no avail.

I am using Visual Studio 2019 Community edition with the following workloads:

  • .NET desktop development
  • ASP .NET and web development
  • Universal Windows Platform development
  • Mobile development with .NET
  • .NET Core cross-platform development

After cloning the GitHub repo, I open the MissionPlanner.sln solution with visual studio and try to build the Mission Planner project. I get the following errors:

Category Description File Line Column Project
Error No certificates were found that met all the given criteria. C:\Users\liamc\Desktop\MissionPlanner\Updater\EXEC 0 0 Updater\Updater.csproj
Error No certificates were found that met all the given criteria. C:\Users\liamc\Desktop\MissionPlanner\Updater\EXEC 0 0 Updater\Updater.csproj
Error The command ""C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign /n "Michael Oborne" /t http://timestamp.verisign.com/scripts/timestamp.dll "C:\Users\liamc\Desktop\MissionPlanner\Updater\bin\Debug\Updater.exe"" exited with code 1.   0 0 Updater\Updater.csproj
Error The command ""C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign /n "Michael Oborne" /t http://timestamp.verisign.com/scripts/timestamp.dll "C:\Users\liamc\Desktop\MissionPlanner\Updater\bin\Release\Updater.exe"" exited with code 1.   0 0 Updater\Updater.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\OSDConfigurator\OSDConfigurator.csproj 1 1 ExtLibs\OSDConfigurator\OSDConfigurator.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\OSDConfigurator\OSDConfigurator.csproj 1 1 ExtLibs\OSDConfigurator\OSDConfigurator.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj 1 1 ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj 1 1 ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\ZedGraph\ZedGraph.csproj 1 1 ExtLibs\ZedGraph\ZedGraph.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\ZedGraph\ZedGraph.csproj 1 1 ExtLibs\ZedGraph\ZedGraph.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BaseClasses\BaseClasses.csproj 1 1 ExtLibs\BaseClasses\BaseClasses.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BaseClasses\BaseClasses.csproj 1 1 ExtLibs\BaseClasses\BaseClasses.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BaseClasses\BaseClasses.csproj 1 1 ExtLibs\BaseClasses\BaseClasses.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Windows.Forms\System.Windows.Forms-net_4_x.csproj 1 1 ExtLibs\mono\mcs\class\System.Windows.Forms\System.Windows.Forms-net_4_x.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj 1 1 ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj 1 1 ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj 1 1 ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj 1 1 ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj 1 1 ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\Controls\MissionPlanner.Controls.csproj 1 1 ExtLibs\Controls\MissionPlanner.Controls.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\Controls\MissionPlanner.Controls.csproj 1 1 ExtLibs\Controls\MissionPlanner.Controls.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\OSDConfigurator\OSDConfigurator.csproj 1 1 ExtLibs\OSDConfigurator\OSDConfigurator.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\OSDConfigurator\OSDConfigurator.csproj 1 1 ExtLibs\OSDConfigurator\OSDConfigurator.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj 1 1 ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj 1 1 ExtLibs\BSE.Windows.Forms\BSE.Windows.Forms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\ZedGraph\ZedGraph.csproj 1 1 ExtLibs\ZedGraph\ZedGraph.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\ZedGraph\ZedGraph.csproj 1 1 ExtLibs\ZedGraph\ZedGraph.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BaseClasses\BaseClasses.csproj 1 1 ExtLibs\BaseClasses\BaseClasses.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BaseClasses\BaseClasses.csproj 1 1 ExtLibs\BaseClasses\BaseClasses.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\BaseClasses\BaseClasses.csproj 1 1 ExtLibs\BaseClasses\BaseClasses.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Windows.Forms\System.Windows.Forms-net_4_x.csproj 1 1 ExtLibs\mono\mcs\class\System.Windows.Forms\System.Windows.Forms-net_4_x.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj 1 1 ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj 1 1 ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj 1 1 ExtLibs\AltitudeAngelWings\AltitudeAngelWings.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj 1 1 ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj 1 1 ExtLibs\GMap.NET.WindowsForms\GMap.NET.WindowsForms.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\Controls\MissionPlanner.Controls.csproj 1 1 ExtLibs\Controls\MissionPlanner.Controls.csproj
Error Unable to find project information for 'C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. C:\Users\liamc\Desktop\MissionPlanner\ExtLibs\Controls\MissionPlanner.Controls.csproj 1 1 ExtLibs\Controls\MissionPlanner.Controls.csproj

As can be seen above, there seems to be a referencing issue with mono - I have made sure that I cloned the mono submodule from the Mission Planner GitHub repo but I see that the .csproj files referenced in the error messages are missing. I ideally just want to develop a plugin for Mission Planner and would like to avoid using mono if possible. I have also tried the Batch Build with all projects selected however this results in even more errors (which include the errors above still).

@Michael_Oborne How would one go about resolving these issues? Also, are there any up-to-date guides on getting set up to develop Mission Planner plugins with a clean install of Visual Studio (and the necessary workloads) as following the guide and the readme seem to both fail during the build process? Thanks in advance!

when cloning the repo, you have to update submodules as well by git submodule update – init --recursive This will download mono.

After that go to ExtLibs/WinForms and add the two missing projects

MissionPlanner\ExtLibs\mono\mcs\class\System.Runtime.Serialization.Formatters.Soap\System.Runtime.Serialization.Formatters.Soap-net_4_x.csproj
and
MissionPlanner\ExtLibs\mono\mcs\class\Accessibility\Accessibility-net_4_x.csproj
That will do it.

1 Like

Thanks @Eosbandi! All working now.

i just merged your fix for this one. its funny how CI was happy to building it without those projects

Servers by jDrones