How to efficiently incorporate sample projects form GitHub into your solution (currently struggling with MapSui)

montyjohn

New member
Joined
Feb 26, 2021
Messages
1
Programming Experience
Beginner
For some time now I’ve been trying to use the NuGet library Mapsui to create a WPF application with some GIS capabilities.. Mapsui link

The instruction are very clear and simple to get a basic app running that will open up OpenStreepMap and allow you to zoom and pan.

Beyond that (say loading SHP files, adding points etc), the documentation just stops (at least in a language I can understand) and you are referred to the sample projects.

The problem is, the sample projects have several dependency projects which refer to dozens of classes with no order I can fathom. When I try and copy all the projects over in the list of dependencies that are required, they fail to build due to more missing references, packages or something else?

Sometimes I figure out that it’s a missing class maybe, but copying that them over just introduces more missing reference warnings.

Am I missing a simple trick to incorporate the sample projects?

Any help, tips or advice would be much appreciated.
 
It looks like the sample code assumes that you've downloaded the entire github repo and it expects to find other reference projects at various relative paths:
XML:
<ItemGroup>
    <ProjectReference Include="..\..\Mapsui.Geometries\Mapsui.Geometries.csproj" />
    <ProjectReference Include="..\..\Mapsui.Rendering.Skia\Mapsui.Rendering.Skia.csproj" />
    <ProjectReference Include="..\..\Mapsui.Rendering.Xaml\Mapsui.Rendering.Xaml.csproj" />
    <ProjectReference Include="..\..\Mapsui.UI.Wpf\Mapsui.UI.Wpf.csproj" />
    <ProjectReference Include="..\..\Mapsui\Mapsui.csproj" />
    <ProjectReference Include="..\..\Tests\Mapsui.Tests.Common\Mapsui.Tests.Common.csproj" />
    <ProjectReference Include="..\Mapsui.Samples.Common.Desktop\Mapsui.Samples.Common.Desktop.csproj" />
    <ProjectReference Include="..\Mapsui.Samples.Common\Mapsui.Samples.Common.csproj" />
    <ProjectReference Include="..\Mapsui.Samples.CustomWidget\Mapsui.Samples.CustomWidget.csproj" />
</ItemGroup>

 
For some time now I’ve been trying to use the NuGet library Mapsui to create a WPF application with some GIS capabilities.. Mapsui link

The instruction are very clear and simple to get a basic app running that will open up OpenStreepMap and allow you to zoom and pan.

Beyond that (say loading SHP files, adding points etc), the documentation just stops (at least in a language I can understand) and you are referred to the sample projects.

The problem is, the sample projects have several dependency projects which refer to dozens of classes with no order I can fathom. When I try and copy all the projects over in the list of dependencies that are required, they fail to build due to more missing references, packages or something else?

Sometimes I figure out that it’s a missing class maybe, but copying that them over just introduces more missing reference warnings.

Am I missing a simple trick to incorporate the sample projects?

Any help, tips or advice would be much appreciated.

Have u been able to solve this problem? I am facing this issue too...
 
Unfortunately, that user only logged on this web site one in 2021 to post that question and never logged back in again. Chances are not looking good for response.
 
Have u been able to solve this problem?

For the record, there was no need for you to quote that entire post. You should only quote a post if it is necessary to provide context and only post the relevant part of the post if it's long. If you're responding to the first post then there's no need to quote anything. The fact that you're asking about "the problem" makes the context obvious. I have quoted your post in this case to make it clear that I am responding to that and not the OP. I have only quoted part of your post because including the rest doesn't add any value. As a rule, quote as little as possible to make it clear what you're responding to.
 
<soto voce>Or have ChatGPT write your app for you</soto voce>
 

Latest posts

Back
Top Bottom