This is a migrated thread and some comments may be shown as answers.

v2.12 Build warnings: Demos and Template

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 05 May 2020, 08:45 PM

I updated to 2.12 a little while ago. First thing I did was open the demos solution, in VS 2019 16.6 preview 5. After fixing my local Nuget pointer to 2.12, I did a Nuget restore, then did a solution Build. 100s of warnings in the output window. Don't recall this when building previous version Demos project.

Then created a new project using same VS version, and chose Telerik CRUD/Form/Chart template, Blazor server. That build is throwing the Async warnings I'm familiar with from the WeatherForecastService Error CS1998 about the lack of an awaits keyword. Is this something you mean to suppress in Editor.config?

Same warnings thrown during build with VS 2019 16.5.4

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 06 May 2020, 03:29 AM

Hi Bill,

The "lack of awaits" warnings are not something we should suppress in our project template because it should be up to the developer to decide such settings, we should not hide warnings arbitrarily.

Many of the relatively simple examples we provide so people can get started with as much copy-paste-run as possible showcase the ability to use async events, because that's what a real app uses, but they do not have actual async operations as that would make the examples very heavy and coupled, and they would not serve too well as getting started resources.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Bill
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or