Skip to content

Commit

Permalink
Use global usings
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Jun 30, 2023
1 parent ea1d427 commit ddc7540
Show file tree
Hide file tree
Showing 1,400 changed files with 493 additions and 7,076 deletions.
29 changes: 29 additions & 0 deletions build/Common.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,42 @@

<!-- Ignore errors/warnings about semver 2.0 when packing CI builds -->
<NoWarn>$(NoWarn);NU5105</NoWarn>
<LangVersion Condition="$(MSBuildProjectExtension) == '.csproj'">10</LangVersion>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>

<!-- support t4 templates in projects -->
<ItemGroup>
<TextTemplate Include="**\*.tt" />
<AvailableItemName Include="TextTemplate" />
</ItemGroup>

<ItemGroup Condition="$(UseGlobalUsings) == 'true'">
<Using Include="System" />
<Using Include="System.Collections" />
<Using Include="System.Collections.Generic" />
<Using Include="System.Collections.ObjectModel" />
<Using Include="System.Collections.Specialized" />
<Using Include="System.ComponentModel" />
<Using Include="System.Diagnostics" />
<Using Include="System.Globalization" />
<Using Include="System.IO" />
<Using Include="System.Linq" />
<Using Include="System.Linq.Expressions" />
<Using Include="System.Reflection" />
<Using Include="System.Runtime.InteropServices" />
<Using Include="System.Runtime.Serialization" />
<Using Include="System.Text" />
<Using Include="System.Text.RegularExpressions" />
<Using Include="System.Threading" />
<Using Include="System.Threading.Tasks" />
<Using Include="Eto.Forms" />
<Using Include="Eto.Drawing" />
<Using Include="Eto.Forms.Container" Alias="Container" />
<Using Include="Eto.Forms.Calendar" Alias="Calendar" />
<Using Include="System.ComponentModel" Alias="sc" />
<Using Include="System.Windows.Input.ICommand" Alias="ICommand" />
</ItemGroup>

<Import Condition="Exists('$(BasePath)..\Eto.Common.props')" Project="$(BasePath)..\Eto.Common.props" />
</Project>
2 changes: 1 addition & 1 deletion build/Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<HasXamarinMac Condition="$(HasXamarinMac) == ''">True</HasXamarinMac> <!-- VS for Mac needs this, Exists isn't evaluated -->

<ArtifactsDir Condition="$(BuildOutoutDir) == ''">$(BasePath)artifacts\</ArtifactsDir>
<BaseIntermediateOutputPath Condition="$(BaseIntermediateOutputPath) == ''">$(BasePath)artifacts\obj\$(OSPlatform)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<BaseIntermediateOutputPath Condition="$(BaseIntermediateOutputPath) == ''">$(ArtifactsDir)obj\$(OSPlatform)\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<SourceDir Condition="$(SourceDir) == ''">$(BasePath)src\</SourceDir>
<NugetDir Condition="$(NugetDir) == ''">$(SourceDir)</NugetDir>
<PackageOutputPath>$(ArtifactsDir)nuget\$(Configuration)\</PackageOutputPath>
Expand Down
6 changes: 5 additions & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<UseGlobalUsings>true</UseGlobalUsings>
</PropertyGroup>

<Import Project="..\build\Common.Build.props" />
<PropertyGroup>
<BaseOutputPath Condition="$(BaseOutputPath) == ''">$(BasePath)artifacts\core\$(MSBuildProjectName)\</BaseOutputPath>
<BaseOutputPath Condition="$(BaseOutputPath) == ''">$(ArtifactsDir)core\$(MSBuildProjectName)\</BaseOutputPath>
</PropertyGroup>
</Project>
4 changes: 0 additions & 4 deletions src/Eto.Android/AndroidHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using System;
using Android.Widget;
using Eto.Android.Forms;
using Eto.Drawing;
using Eto.Forms;

using av = Android.Views;
using ag = Android.Graphics;
using Android.Views;
Expand Down
7 changes: 0 additions & 7 deletions src/Eto.Android/ContextMenuHandler.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
using Eto.Forms;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
using ar = Android.Runtime;
using av = Android.Views;
using aw = Android.Widget;
using ag = Android.Graphics;
using System.Collections.Generic;
using System;
using System.Linq;
using Eto.Drawing;

namespace Eto.Android
{
internal class ContextMenuHandler : WidgetHandler<aw.PopupMenu, ContextMenu, ContextMenu.ICallback>, ContextMenu.IHandler
Expand Down
3 changes: 0 additions & 3 deletions src/Eto.Android/Conversions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using Eto.Forms;
using Eto.Drawing;
using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
8 changes: 0 additions & 8 deletions src/Eto.Android/Drawing/BitmapHandler.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
using ar = Android.Runtime;
using av = Android.Views;
using aw = Android.Widget;
using ag = Android.Graphics;
using System.IO;

namespace Eto.Android.Drawing
{
/// <summary>
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/BrushHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/FontFamilyHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/FontHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/FontTypefaceHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;
using Eto.Forms;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
8 changes: 0 additions & 8 deletions src/Eto.Android/Drawing/FontsHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand All @@ -12,8 +6,6 @@
using aw = Android.Widget;
using ag = Android.Graphics;
using System.Xml.Linq;
using System.IO;

namespace Eto.Android.Drawing
{
public class FontsHandler : WidgetHandler<Widget>, Fonts.IHandler
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/FormattedTextHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/GraphicsHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/GraphicsPathHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
8 changes: 0 additions & 8 deletions src/Eto.Android/Drawing/IconHandler.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
using ar = Android.Runtime;
using av = Android.Views;
using aw = Android.Widget;
using ag = Android.Graphics;
using Eto.Forms;

namespace Eto.Android.Drawing
{
class IconFrameHandler : IconFrame.IHandler
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/IndexedBitmapHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/LinearGradientBrushHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/MatrixHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/PenHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/SolidBrushHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
2 changes: 0 additions & 2 deletions src/Eto.Android/Drawing/SystemColorsHandler.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Eto.Drawing;

namespace Eto.Android
{
public class SystemColorsHandler : SystemColors.IHandler
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Drawing/TextureBrushHandler.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eto.Drawing;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
Expand Down
4 changes: 0 additions & 4 deletions src/Eto.Android/Forms/AndroidContainer.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using Eto.Forms;
using Eto.Drawing;
using a = Android;
using av = Android.Views;
using aw = Android.Widget;
Expand Down
6 changes: 0 additions & 6 deletions src/Eto.Android/Forms/AndroidControl.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Eto.Forms;
using Eto.Drawing;

using a = Android;
using av = Android.Views;

Expand Down
3 changes: 0 additions & 3 deletions src/Eto.Android/Forms/AndroidExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using Eto.Forms;
using Eto.Drawing;
using a = Android;
using av = Android.Views;
using aw = Android.Widget;
Expand Down
3 changes: 0 additions & 3 deletions src/Eto.Android/Forms/AndroidPanel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using Eto.Forms;
using Eto.Drawing;
using a = Android;
using av = Android.Views;
using aw = Android.Widget;
Expand Down
3 changes: 0 additions & 3 deletions src/Eto.Android/Forms/AndroidTextControl.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Eto.Forms;
using Eto.Drawing;

using aw = Android.Widget;
using at = Android.Text;
using av = Android.Views;
Expand Down
4 changes: 0 additions & 4 deletions src/Eto.Android/Forms/AndroidWindow.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Threading.Tasks;
using Eto.Forms;
using Eto.Drawing;
using a = Android;
using av = Android.Views;
using aw = Android.Widget;
Expand Down
5 changes: 0 additions & 5 deletions src/Eto.Android/Forms/ApplicationHandler.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Eto.Forms;

using a = Android;
using ao = Android.OS;

Expand Down
7 changes: 0 additions & 7 deletions src/Eto.Android/Forms/Cells/CheckBoxCellHandler.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
using ar = Android.Runtime;
using av = Android.Views;
using aw = Android.Widget;
using ag = Android.Graphics;
using Eto.Forms;

namespace Eto.Android.Forms.Cells
{
public class CheckBoxCellHandler : CellHandler<CheckBoxCell>, CheckBoxCell.IHandler
Expand Down
7 changes: 0 additions & 7 deletions src/Eto.Android/Forms/Cells/ComboBoxCellHandler.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using aa = Android.App;
using ac = Android.Content;
using ao = Android.OS;
using ar = Android.Runtime;
using av = Android.Views;
using aw = Android.Widget;
using ag = Android.Graphics;
using Eto.Forms;

namespace Eto.Android.Forms.Cells
{
public class ComboBoxCellHandler : CellHandler<ComboBoxCell>, ComboBoxCell.IHandler
Expand Down
1 change: 0 additions & 1 deletion src/Eto.Android/Forms/Cells/ICellHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Eto.Forms;
using av = Android.Views;

namespace Eto.Android.Forms.Cells
Expand Down
Loading

0 comments on commit ddc7540

Please sign in to comment.