Build MP on visual studio 2022

Hi i trying to build mission planner but i have a lot of error

|Error|CS0579|Duplicate ‘global::System.Runtime.Versioning.TargetFrameworkAttribute’ attribute|7zip (netstandard2.0)|D:\MissionPlanner\ExtLibs\7zip\obj\Debug\netstandard2.0.NETStandard,Version=v2.0.AssemblyAttributes.cs|4|Active||
and this
Error CS0006 Metadata file ‘D:\MissionPlanner\ExtLibs\7zip\bin\Release\netstandard2.0\7zip.dll’ could not be found wasm D:\MissionPlanner\ExtLibs\wasm\CSC 1 Active
i do git submodule update
help me please

Visual Studio: Clean Solution
Close Visual Studio
Shell:
cd
git clean -nfdx -e .vs/
git clean -fdx -e .vs/
Open Visual Studio:
Build Mission Planner

2 Likes

Thanks for your help
My problem has been solved

Hello, I encountered a similar issue while compiling MissionPlanner. I followed the steps you mentioned, but the problem still persists when I regenerate the solution. Is there any other way to solve this? Thank you!

1 Like

Hi
you must go to release page and download source code.zip extract zip file copy all extlib to your extlib solution

Note:just download mono with git submodule

Thanks for your help!
I successfully built MissionPlanner!

1 Like

您好,我想请问您如何解决的,我目前还没有解决,想请教一下您

因为GitHub上的代码没有完全下载,去GitHub上找到正在更新的momo文件夹并手动下载到对应的文件夹里就好

---- 回复的原邮件 ----

发件人 | 桐桐 工藤 via ArduPilot Discoursenoreply@ardupilot.org |

  • | - |
    日期 | 2024年08月07日 17:05 |
    收件人 | runner0418@163.com |
    抄送至 | |
    主题 | [ArduPilot Discuss] [Ground Control Software/Mission Planner] Build MP on visual studio 2022 |

| chenjunzhu4 桐桐 工藤
August 7 |

  • | - |

您好,我想请问您如何解决的,我目前还没有解决,想请教一下您

因为GitHub上的代码没有完全下载,去GitHub上找到正在更新的代码并手动下载到对应的文件夹上就好

---- 回复的原邮件 ----

发件人 | 桐桐 工藤 via ArduPilot Discoursenoreply@ardupilot.org |

  • | - |
    日期 | 2024年08月07日 17:05 |
    收件人 | runner0418@163.com |
    抄送至 | |
    主题 | [ArduPilot Discuss] [Ground Control Software/Mission Planner] Build MP on visual studio 2022 |

| chenjunzhu4 桐桐 工藤
August 7 |

  • | - |

您好,我想请问您如何解决的,我目前还没有解决,想请教一下您

谢谢您的回复,昨天没看到您的回复,事实上我用git status已经没问题了,但是依旧报错,同时用这个git submodule update --init --recursive
也会出现许多问题,很抱歉打扰您,实在不知道如何解决了