diff options
author | kingces95 <kingces95@users.noreply.github.com> | 2016-04-06 10:32:29 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-04-06 10:32:29 -0700 |
commit | b7251aa6f9315a8873aa4bbaa9ee147c6ee18e7b (patch) | |
tree | e41e59a08b6c10c97f294a3f9bb94848cad69949 /Xamarin.Forms.Platform.Android | |
parent | fae68e21b903d2a771bce21eeff81bb519d4d0e5 (diff) | |
download | xamarin-forms-b7251aa6f9315a8873aa4bbaa9ee147c6ee18e7b.tar.gz xamarin-forms-b7251aa6f9315a8873aa4bbaa9ee147c6ee18e7b.tar.bz2 xamarin-forms-b7251aa6f9315a8873aa4bbaa9ee147c6ee18e7b.zip |
Warnings as Errors in product projects
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Platform.cs | 4 | ||||
-rw-r--r-- | Xamarin.Forms.Platform.Android/ViewExtensions.cs | 4 | ||||
-rw-r--r-- | Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj | 6 |
3 files changed, 10 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Android/Platform.cs b/Xamarin.Forms.Platform.Android/Platform.cs index baf7fa44..d3e56336 100644 --- a/Xamarin.Forms.Platform.Android/Platform.cs +++ b/Xamarin.Forms.Platform.Android/Platform.cs @@ -456,10 +456,10 @@ namespace Xamarin.Forms.Platform.Android Color colorToUse = Color.Default; if (CurrentNavigationPage != null) { -#pragma warning disable 618 +//#pragma warning disable 618 if (CurrentNavigationPage.Tint != Color.Default) colorToUse = CurrentNavigationPage.Tint; -#pragma warning restore 618 +//#pragma warning restore 618 else if (CurrentNavigationPage.BarBackgroundColor != Color.Default) colorToUse = CurrentNavigationPage.BarBackgroundColor; } diff --git a/Xamarin.Forms.Platform.Android/ViewExtensions.cs b/Xamarin.Forms.Platform.Android/ViewExtensions.cs index 12faa1ed..4266ce53 100644 --- a/Xamarin.Forms.Platform.Android/ViewExtensions.cs +++ b/Xamarin.Forms.Platform.Android/ViewExtensions.cs @@ -27,9 +27,9 @@ namespace Xamarin.Forms.Platform.Android if (s_apiLevel < 16) { -#pragma warning disable 618 +//#pragma warning disable 618 view.SetBackgroundDrawable(drawable); -#pragma warning restore 618 +//#pragma warning restore 618 } else view.Background = drawable; diff --git a/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj b/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj index a9894e3e..ab4b61c3 100644 --- a/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj +++ b/Xamarin.Forms.Platform.Android/Xamarin.Forms.Platform.Android.csproj @@ -27,6 +27,8 @@ <DefineConstants>TRACE;DEBUG</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <NoWarn>0642;0618;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> @@ -35,6 +37,8 @@ <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <NoWarn>0642;0618;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'"> <DebugSymbols>true</DebugSymbols> @@ -45,6 +49,8 @@ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> <ErrorReport>prompt</ErrorReport> <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <NoWarn>0642;0618;0114;0108;0672;0168;0169;0184;0649;1998;0414</NoWarn> </PropertyGroup> <ItemGroup> <Reference Include="Mono.Android" /> |