Mapsui: a project with an output type of class library cannot be started directly

Created on 8 May 2020  路  9Comments  路  Source: Mapsui/Mapsui

image

I cannot run this project.
Can anybody explain how to solve it?

question

All 9 comments

As the error message says: you try to start a library.

You should not download a part of Mapsui. If you want to try a sample, than download the whole project and select a sample project for a platform (like the Mapsui.Samples.Droid for Android or Mapsui.Samples.UWP for UWP) as startup project.

image

Even though, I opened whole project and selected a sample project, same error message has been shown.

Building project and Start Without Debugging takes a long time.

Any solution?

Now you have selected Mapsui as startup project. Mapsui itself is a library, which couldn't be started.

So select the Mapsui.Samples.Uwp project, press the right mouse button and choose "Set as Startup project". Than start again.

image

Same error has not been solved yet.

You didn't do, what I said. Now you try again to start the library Mapsui.Samples.Common.Desktop. That wouldn't work. You should select "Mapsui.Samples.Uwp" as startup project.

image

When I select "Mapsui.Samples.Uwp" as startup project, it suddenly shows a lof of errors.

Go on the right side to "Solution", press right mouse button and select "Clean Solution". Than press right mouse button again and select "Restore NuGet Packages". Try again.

Btw. do you create a C# project before?

If this issue is solved, could you please close it?

If this issue is solved, could you please close it?

Yeah, @Kayumiy, be a good citizen and close the issue, you can do it!

@charlenni I added a few notes of how users can help in the readme: https://github.com/mapsui/mapsui#how-can-i-help-as-a-user

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charlenni picture charlenni  路  3Comments

JesrigPineda picture JesrigPineda  路  5Comments

YordanYanakiev picture YordanYanakiev  路  6Comments

willy40 picture willy40  路  6Comments

lukaszpitulski picture lukaszpitulski  路  5Comments