summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests
diff options
context:
space:
mode:
authorkingces95 <kingces95@users.noreply.github.com>2016-04-06 23:08:17 -0700
committerJason Smith <jason.smith@xamarin.com>2016-04-06 23:08:17 -0700
commit26604911bf6e412aa35a36236d04eded8d7bf17c (patch)
tree23ec5cbd6384f698baf014751a7a1999d9910650 /Xamarin.Forms.Xaml.UnitTests
parenta0f0b3954ed73c891e52f10ab21243b8473da72a (diff)
downloadxamarin-forms-26604911bf6e412aa35a36236d04eded8d7bf17c.tar.gz
xamarin-forms-26604911bf6e412aa35a36236d04eded8d7bf17c.tar.bz2
xamarin-forms-26604911bf6e412aa35a36236d04eded8d7bf17c.zip
Enable warnings as errors in XAML
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs2
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj6
2 files changed, 7 insertions, 1 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs b/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
index 76817335..c31ae0db 100644
--- a/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
+++ b/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
@@ -503,7 +503,7 @@ namespace Xamarin.Forms.Xaml.UnitTests
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml""
x:Class=""Xamarin.Forms.Xaml.UnitTests.CustEntry"" TextChanged=""onValueChanged"" />
</Entry>";
- var view = new CustEntry ().LoadFromXaml (xaml);
+ new CustEntry ().LoadFromXaml (xaml);
}
[Test]
diff --git a/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj b/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj
index 114b8df1..e058f9f9 100644
--- a/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj
+++ b/Xamarin.Forms.Xaml.UnitTests/Xamarin.Forms.Xaml.UnitTests.csproj
@@ -20,6 +20,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <NoWarn>0672;0618;1998;0219;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@@ -28,6 +30,8 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <NoWarn>0672;0618;1998;0219;0414</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Turkey|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
@@ -39,6 +43,8 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<WarningLevel>4</WarningLevel>
<Optimize>false</Optimize>
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ <NoWarn>0672;0618;1998;0219;0414</NoWarn>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Cecil, Version=0.9.6.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">