public ObservableCollection<RecipeGroup> RecipeGroups { get; set; }
+#pragma warning disable 1998 // considered for removal
public async Task LoadRecipesAsync ()
+#pragma warning restore 1998
{
var groups = new ObservableCollection<RecipeGroup> ();
groups.Add (new RecipeGroup { Title = "Teste 1" });
}
}
+#pragma warning disable 1998 // considered for removal
async void FastCompleteForCmd(object sender)
+#pragma warning restore 1998
{
try
{
};
}
+#pragma warning disable 1998 // considered for removal
async Task CheckTranslateRunning(BoxView box)
+#pragma warning restore 1998
{
Debug.WriteLine(box.AnimationIsRunning("TranslateTo") ? "Translate is running" : "Translate is not running");
}
await box.RelRotateTo(360);
}
+#pragma warning disable 1998 // considered for removal
async Task Cancel(BoxView box)
+#pragma warning restore 1998
{
box.AbortAnimation("animate");
box.AbortAnimation("kinetic");
}
+#pragma warning disable 1998 // considered for removal
async Task Animate(BoxView box)
+#pragma warning restore 1998
{
box.Animate("animate", d => d, d => { }, 100, 1);
}
+#pragma warning disable 1998 // considered for removal
async Task Kinetic(BoxView box)
+#pragma warning restore 1998
{
var resultList = new List<Tuple<double, double>>();
try {
IsPresented = !IsPresented;
} catch (InvalidOperationException ex) {
- DisplayAlert ("Error", ex.Message, "ok");
+ await DisplayAlert ("Error", ex.Message, "ok");
}
}
// Comment this delay out to see the bug
// await Task.Delay(500);
- _button.LayoutTo(new Rectangle(100, 100, 100, 100), 1000);
+ await _button.LayoutTo(new Rectangle(100, 100, 100, 100), 1000);
}
}
}
\ No newline at end of file
}
}
+#pragma warning disable 1998 // considered for removal
public async Task LoadData (int start, int numberOfRecords)
+#pragma warning restore 1998
{
IsLoading = true;
for (int counter = 0; counter < numberOfRecords; counter++)
_mainMenuItems = new ObservableCollection<MainMenuItem> (Enumerable.Empty<MainMenuItem> ());
}
+#pragma warning disable 1998 // considered for removal
public async Task InitializeAsync ()
+#pragma warning restore 1998
{
var items = new List<MainMenuItem> ();
items.Add (new MainMenuItem {
}
+#pragma warning disable 1998 // considered for removal
public async void OnDelete (object sender, EventArgs e)
+#pragma warning restore 1998
{
var mi = ((MenuItem)sender);
if (mi.CommandParameter == null)
}
}
+#pragma warning disable 1998 // considered for removal
public async Task ExecuteFavoritesCommand ()
+#pragma warning restore 1998
{
if (IsBusy)
return;
var btn = new Button {
AutomationId = "popModal",
Text = "Pop",
- Command = new Command (async () => Navigation.PopModalAsync ())
+ Command = new Command (async () => await Navigation.PopModalAsync ())
};
rootLayout.Children.Add (btn);
rootLayout.Children.Add (new ActivityIndicator { AutomationId = "actHello", IsRunning = true });
var btn = new Button {
AutomationId = "popModal",
Text = "Pop",
- Command = new Command (async () => Navigation.PopModalAsync ())
+ Command = new Command (async () => await Navigation.PopModalAsync ())
};
rootLayout.Children.Add (btn);
rootLayout.Children.Add (new Image { AutomationId = "imgHello", Source = "menuIcon" });
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;0109;4014;1998;0649;0169;0472;0414;0168;0219;0429</NoWarn>
+ <NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;0109;4014;1998;0649;0169;0472;0414;0168;0219;0429</NoWarn>
+ <NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<WarningLevel>4</WarningLevel>
<Optimize>false</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;0109;4014;1998;0649;0169;0472;0414;0168;0219;0429</NoWarn>
+ <NoWarn>0114;0108;0109;4014;0649;0169;0472;0414;0168;0219;0429</NoWarn>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0168;0169;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0168;0169;0219</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0168;0169;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0168;0169;0219</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0168;0169;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0168;0169;0219</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0169;0168;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0169;0168;0219</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0169;0168;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0169;0168;0219</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=3.0.5813.39031, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0169;0168;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0169;0168;0219</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0169;0168;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0169;0168;0219</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0114;0108;4014;1998;0649;0169;0168;0219</NoWarn>
+ <NoWarn>0114;0108;4014;0649;0169;0168;0219</NoWarn>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
UpdateToolbar();
}
- void DeviceInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
+#pragma warning disable 1998 // considered for removal
+ async void DeviceInfoPropertyChanged(object sender, PropertyChangedEventArgs e)
+#pragma warning restore 1998
{
if (nameof(Device.Info.CurrentOrientation) == e.PropertyName)
ResetToolbar();
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>
- </NoWarn>
+ <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn>
+ <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn>
+ <NoWarn>0642;0114;0108;0672;0168;0169;0184;0649;0414</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>1998</NoWarn>
+ <NoWarn></NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>1998</NoWarn>
+ <NoWarn></NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<PlatformTarget>ARM</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
- <NoWarn>1998;0649;0169;0067</NoWarn>
+ <NoWarn>0649;0169;0067</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
- <NoWarn>1998;0649;0169;0067</NoWarn>
+ <NoWarn>0649;0169;0067</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
- <NoWarn>1998;0649;0169;0067</NoWarn>
+ <NoWarn>0649;0169;0067</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
- <NoWarn>1998;0649;0169;0067</NoWarn>
+ <NoWarn>0649;0169;0067</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
- <NoWarn>1998;0649;0169;0067</NoWarn>
+ <NoWarn>0649;0169;0067</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<Optimize>true</Optimize>
- <NoWarn>1998;0649;0169;0067</NoWarn>
+ <NoWarn>0649;0169;0067</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
ScrollTo(til.ListProxy.ProxiedEnumerable, til.ListProxy[0], ScrollToPosition.Start, true, true);
}
+#pragma warning disable 1998 // considered for removal
async void ScrollTo(object group, object item, ScrollToPosition toPosition, bool shouldAnimate, bool includeGroup = false, bool previouslyFailed = false)
+#pragma warning restore 1998
{
ScrollViewer viewer = GetScrollViewer();
if (viewer == null)
(this as ITitleProvider).BarForegroundBrush = GetBarForegroundBrush();
}
+#pragma warning disable 1998 // considered for removal
async void UpdateTitleOnParents()
+#pragma warning restore 1998
{
if (Element == null)
return;
return GetCommandBarAsync();
}
+#pragma warning disable 1998 // considered for removal
async Task<CommandBar> GetCommandBarAsync()
+#pragma warning restore 1998
{
#if !WINDOWS_UWP
return _page.BottomAppBar as CommandBar;
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>1998</NoWarn>
+ <NoWarn></NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>1998</NoWarn>
+ <NoWarn></NoWarn>
</PropertyGroup>
<ItemGroup>
<!-- A reference to the entire .NET Framework is automatically included -->
}
int asyncPrivateClicked;
+#pragma warning disable 1998 // considered for removal
async void HandleClickedPrivateAsync (object sender, EventArgs e)
+#pragma warning restore 1998
{
asyncPrivateClicked++;
}
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0672;1998;0219;0414</NoWarn>
+ <NoWarn>0672;0219;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0672;1998;0219;0414</NoWarn>
+ <NoWarn>0672;0219;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<WarningLevel>4</WarningLevel>
<Optimize>false</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
- <NoWarn>0672;1998;0219;0414</NoWarn>
+ <NoWarn>0672;0219;0414</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">