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

Hi Liam,
I am trying to compile the mission planner and getting the same errors.
System.Windows.Forms-net_4_x.csproj is missing.
Can you please help me locate it or send it to me.

Thanks,
-R.Meraj-

You need to checkout the submodules

can you please share the link of the documentation where that’s written? @Michael_Oborne
Thanks.

First of all install mission planner to resolve missing dll, you have to clean and close the solution then delete bin/ and obj/ folders and make this command git submodule update —init —recursive this will solve mono errors. Then open the solution and right click in mission planner and build if you have uploader errors you can right click on uploader project in the solution explorer and Click Build Events and Remove all pre-build and post build options

I’m also facing same issues for past 5 days. But I can’t able to resolve. Please help me out.

  1. Use Visual studio 2019 16.8.2
  2. After cloning the repository issue the git submodule --init --recursive in the solution directory to update submodules
  3. Build on the MissionPlanner project to the full solution.
2 Likes

How to deal with this signtool.exe error?
I have un-check signing -> dign the clickonce manifests

image

image

And this

image

@Eosbandi Could you please give me some advices? Thanks!

Why do you want to build updater ?
As told before, all you need to build is the Project “Mission Planner” not the full solution.

Updater is part of the remote update infrastructure for released/beta builds. For a custom build you don’t need that.

Get it .Thank you very much!