Skip to content

Commit

Permalink
Move nullable to root Directory.Build.props
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldendulk committed Nov 19, 2023
1 parent 9ae2214 commit dea5406
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<IsPackable>false</IsPackable> <!--Default to not packable and override in projects that do need to be packed.-->
<!--Disable Run Api Compat Task causes Build failure on github actions with visual studio 2022 17.5 and .net Compilers Toolset 4.6-->
<RunApiCompat>false</RunApiCompat>
<Nullable>enable</Nullable>
</PropertyGroup>

<!--Package Icon Include -->
Expand All @@ -30,7 +31,6 @@
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);NU1008;NU1701</NoWarn>
<!-- Enable Windows Targeting on non Windows platforms -->
<EnableWindowsTargeting Condition="'$(OS)' != 'Windows_NT'">true</EnableWindowsTargeting>
Expand Down
2 changes: 1 addition & 1 deletion Mapsui.Nts/GeometryFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public GeometryFeature(Geometry? geometry)

public Geometry? Geometry { get; set; }

public MRect? Extent => Geometry?.EnvelopeInternal.ToMRect(); // Todo: Make not-nullable
public MRect? Extent => Geometry?.EnvelopeInternal.ToMRect();

public override void Dispose()
{
Expand Down
2 changes: 0 additions & 2 deletions Mapsui.UI.Android/MapControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
using SkiaSharp.Views.Android;
using Math = System.Math;

#nullable enable

namespace Mapsui.UI.Android;

public enum SkiaRenderMode
Expand Down
1 change: 0 additions & 1 deletion Mapsui.UI.Blazor/Mapsui.UI.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<DefineConstants>__BLAZOR__</DefineConstants>
Expand Down
1 change: 0 additions & 1 deletion Mapsui.UI.Eto/Mapsui.UI.Eto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
<DefineConstants>__ETO_FORMS__</DefineConstants>
<PackageId>Mapsui.Eto</PackageId>
Expand Down
1 change: 0 additions & 1 deletion Mapsui.UI.Shared/MapControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using Mapsui.Utilities;
using Mapsui.Widgets;

#nullable enable
#pragma warning disable IDISP008 // Don't assign member with injected and created disposables
#pragma warning disable IDISP001 // Dispose created.
#pragma warning disable IDISP002 // Dispose member.
Expand Down
2 changes: 0 additions & 2 deletions Mapsui.UI.WinUI/MapControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#pragma warning disable IDISP001 // Dispose created.
#pragma warning disable IDISP002 // Dispose member.

#nullable enable

using System;
using System.Threading.Tasks;
using Windows.Devices.Sensors;
Expand Down
2 changes: 0 additions & 2 deletions Mapsui.UI.iOS/MapControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
using Mapsui.Utilities;
using SkiaSharp.Views.iOS;

#nullable enable

namespace Mapsui.UI.iOS;

[Register("MapControl"), DesignTimeVisible(true)]
Expand Down
1 change: 0 additions & 1 deletion Samples/Avalonia/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project>
<PropertyGroup>
<Nullable>enable</Nullable>
<AvaloniaVersion>11.0.0</AvaloniaVersion>
<IsPackable>false</IsPackable> <!--Default to not packable and override in projects that do need to be packed.-->
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
<ApplicationId>com.CompanyName.Mapsui.Samples.Avalonia</ApplicationId>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-ios</TargetFramework>
<SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion Samples/Mapsui.Samples.Blazor/Mapsui.Samples.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

Expand Down
4 changes: 0 additions & 4 deletions Samples/Mapsui.Samples.Droid/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@


#nullable enable

using System;
using System.IO;
using System.Linq;
Expand Down
1 change: 0 additions & 1 deletion Samples/Mapsui.Samples.Droid/Mapsui.Samples.Droid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationId>com.companyname.MapsuiSamples</ApplicationId>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ApplicationVersion>1</ApplicationVersion>
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion Samples/Mapsui.Samples.Uno.WinUI/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<PropertyGroup>
<LangVersion>11</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<DebugType>portable</DebugType>
<DebugSymbols>True</DebugSymbols>
Expand Down
1 change: 0 additions & 1 deletion Samples/Mapsui.Samples.iOS/Mapsui.Samples.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<TargetFramework>net8.0-ios</TargetFramework>
<OutputType>Exe</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<OptimizePNGs>False</OptimizePNGs>
<MtouchUseLlvm>False</MtouchUseLlvm>
Expand Down

0 comments on commit dea5406

Please sign in to comment.