Forum General

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Why is this Visual Studio template using async <anonymous> void?

BretBret USMember ✭✭
edited December 2019 in General
  1. File
  2. New Solution
  3. Multiplatform: App
  4. Tabbed Forms App

Change nothing. Navigate to ItemsViewModel.cs and notice the code below:

Visual Studio is appropriately giving warnings about invoking an async Task void, as can be seen on the two "async" words underlined in orange. Additionally, this code presents a bug where a spinner sits and waits for the result of a property that is set in this void Task.

Sign In or Register to comment.