@ElectricRay81 (Raymond Gilbers) posted a new topic, subject "Issues with building Mission Planner in Visual Studio". It read:

   Hello all,
    
    I'm trying to build te Mission Planner as explained on the ArduPilot site. Eventhough all the information is clear explained when I'm building I get errors of missing DLL's. The solution to this would be to add the original MP file to the reference path at the properties page of the project. But I dont have this option it doesn't exsist could anybody help me find out what goes wrong here?
    
    I have done all steps that have been written here:  
    [http://ardupilot.org/dev/docs/buildin-mission-planner.html]
    
    Thanks in advance
    
    Regards
    
    Raymond

@Nikita (Nikita) replied

    Docs are outdated, there is no need for reference patch, check that You have latest VS2017, compatible NetFramework.

@ElectricRay81 (Raymond Gilbers) replied

    Which one would that be I made a fresh install yesterday of Visual Studio and I beleive I followed all the steps. So how could I install the correct .NetFramework?
    
    Thanks for your help

Then @Nikita (Nikita) said

    Net 4.6.1.  
    Try batch build, check Nuget packages, maybe something is missing, what kind of error do You see?

So @ElectricRay81 (Raymond Gilbers) replied

    I think im really doing something wrong
    
    This is just a start of the total 73 errors
    
    Screenshot_5.png1113×373 33.9 KB
    
    I think I have installed all Net stuff

@ElectricRay81 (Raymond Gilbers) replied

    here it shows that I have version: 4.7.1
    
    I dont understand this at all LOL

So @Michael_Oborne (Michael Oborne) replied

    image.png1680×1010 91.6 KB

To which @ElectricRay81 (Raymond Gilbers) replied

    I have marked all does this gives the problem?
    
    Screenshot_7.png1182×450 38.5 KB

So @Michael_Oborne (Michael Oborne) replied

    the required is
    
    net core 2.0  
    and framework 4.6.1
    
    the rest should not matter.

So @ElectricRay81 (Raymond Gilbers) replied

    well than i dont know what goes wrong anymore

So @Michael_Oborne (Michael Oborne) replied

    under the workloads make sure you have .net cross platform selected

After which, @ElectricRay81 (Raymond Gilbers) added

    Screenshot_9.png862×245 14.3 KB
    
    I think this is the one you meant? This one is currently not selected so ill give this a try

To which @ElectricRay81 (Raymond Gilbers) replied

    Well I still get 73 erros all regarding these DLL files???
    
    Screenshot_1.png1120×640 66.5 KB
    
    Could it be that it is because I placed my project on a different drive as VS2017 is?

So @Michael_Oborne (Michael Oborne) replied

    please see  
    
    
    Compiling Mission Planner - Visual Studio Error Code CS1061 Mission Planner
    
    > Also, here is a picture of what I have installed in VS setup [VS] And some warnings I get from dependencies: [image]

After which, @ElectricRay81 (Raymond Gilbers) added

    I have placed manually all the dll files in the folders that were shown in the error lists, this reduced the amount of errors from 73 to 1. Any idea how to solve the last one?
    
    Screenshot_2.png1204×122 8.62 KB
    
    thank you very much for all the help

So @ElectricRay81 (Raymond Gilbers) replied

    Im sorry but it dopesnt seem to work at all and I dont know what im doing wrong here. I have followed the steps and in the post you posted. I added NetFramework 3.5 Tools as well, rebooted the system.
    
    I went to add references and selected the system. speech in the folder C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\ . I keep getting the 73 errors.
    
    I could get rid of 72 errors by placing manually some dll's in their folders but that didn't help as well. What I noticed that when I select system.speech it doesn't stay selected. I don't understand this but it seems that it doesnt accept my choice?

To which @Michael_Oborne (Michael Oborne) replied

    MP wont compile on windows 7 atm. windows 10 is required.

So @QPilot (Peter) replied

    Is it possible to to get access to an older version that will compile on win 7?

After which, @Nikita (Nikita) added

    You can fork old MP via git. But you will lose a lot of fixes/new features in MP.

To which @ddomit (ddomit) replied

    I have the same problem in windows 10


{'source': 'discourse', 'url': 'https://discuss.ardupilot.org/t/issues-with-building-mission-planner-in-visual-studio/29539', 'title': 'Issues with building Mission Planner in Visual Studio', 'views': 2182, 'has_accepted_answer': False, 'word_count': 600, 'like_count': 0, 'reply_count': 9, 'participant_count': 5, 'posts': 20, 'tags': '', 'author': '@ElectricRay81 (Raymond Gilbers)', 'participants': '@ElectricRay81 (Raymond Gilbers), @Nikita (Nikita), @Michael_Oborne (Michael Oborne), @QPilot (Peter), @ddomit (ddomit)', 'image_url': ['https://discuss.ardupilot.org/uploads/default/original/3X/1/5/15f2adcefbd14b99c8a871e2e50ba182d29c8e3f.png'], 'created_at': '2018-05-30T07:13:37.890Z', 'last_posted_at': '2020-10-23T02:57:11.251Z'}