Ошибки выброса UWP MapRouteFinder - PullRequest
0 голосов
/ 13 ноября 2018

Я пытаюсь начать работу с UWP MapControl, но в особенности с MapRouteFinder.Я пробовал этот код из https://docs.microsoft.com/en-us/windows/uwp/maps-and-location/routes-and-directions

        //   Get the route between the points.
        MapRouteFinderResult routeResult =
              await MapRouteFinder.GetDrivingRouteAsync(
              new Geopoint(startLocation),
              new Geopoint(endLocation),
              MapRouteOptimization.Time,
              MapRouteRestrictions.None);

, к сожалению, я получаю ошибку сборки, таким образом:

Severity    Code    Description Project File    Line    Suppression State
Error   CS4036  'IAsyncOperation<MapRouteFinderResult>' does not contain a 
definition for 'GetAwaiter' and no extension method 'GetAwaiter' accepting a 
first argument of type 'IAsyncOperation<MapRouteFinderResult>' could be found 
(are you missing a using directive for 'System'?)   

Не уверены, что отсутствует директива using для 'System'?значит.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...