Skip to content

Commit

Permalink
ImplicitUsings + remove unnecessary usings
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Sep 8, 2022
1 parent 7af4ba0 commit 38f356e
Show file tree
Hide file tree
Showing 137 changed files with 118 additions and 466 deletions.
1 change: 1 addition & 0 deletions BlazorAppTest/BlazorAppTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 0 additions & 3 deletions BlazorAppTest/Controllers/FileUploadController.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Net.Http.Headers;
using System;
using System.IO;
using System.Net;
using System.Threading.Tasks;

namespace BlazorAppTest.Controllers;

Expand Down
6 changes: 1 addition & 5 deletions BlazorAppTest/Pages/HxFilterFormTest.razor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Havit.Blazor.Components.Web.Bootstrap;

namespace BlazorAppTest.Pages;
Expand Down
6 changes: 1 addition & 5 deletions BlazorAppTest/Pages/HxListLayoutTest.razor.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Havit.Blazor.Components.Web.Bootstrap;
using Havit.Blazor.Components.Web.Bootstrap;
using Microsoft.AspNetCore.Components;

namespace BlazorAppTest.Pages;
Expand Down
4 changes: 1 addition & 3 deletions BlazorAppTest/Pages/HxListLayoutWithoutFilterTest.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Havit.Blazor.Components.Web.Bootstrap;
using Havit.Blazor.Components.Web.Bootstrap;
using Microsoft.AspNetCore.Components;

namespace BlazorAppTest.Pages;
Expand Down
8 changes: 1 addition & 7 deletions BlazorAppTest/Pages/MyInputText.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Havit.Blazor.Components.Web.Bootstrap;
using Havit.Blazor.Components.Web.Bootstrap;

namespace BlazorAppTest.Pages;

Expand Down
2 changes: 0 additions & 2 deletions BlazorAppTest/Pages/Pickers/HxSelectPicker.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Havit.Blazor.Components.Web.Bootstrap;

namespace BlazorAppTest.Pages.Pickers;
Expand Down
3 changes: 0 additions & 3 deletions BlazorAppTest/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace BlazorAppTest;

public class Program
Expand Down
6 changes: 0 additions & 6 deletions BlazorAppTest/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
using System.Globalization;
using BlazorAppTest.Resources;
using Havit.Blazor.Components.Web;
using Havit.Blazor.GoogleTagManager;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace BlazorAppTest;

Expand Down
3 changes: 0 additions & 3 deletions BlazorRTLAppTest/Program.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
using Havit.Blazor.Components.Web;
using Havit.Blazor.Components.Web.Bootstrap;

var builder = WebApplication.CreateBuilder(args);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.IO;
using System.Net;
using System.Threading.Tasks;
using System.Net;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Net.Http.Headers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Server;

public class Program
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using System;
using System.Globalization;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Server;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Bunit;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;
using Microsoft.AspNetCore.Components;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

global using Microsoft.AspNetCore.Components;
global using Microsoft.AspNetCore.Components.Rendering;
global using Microsoft.AspNetCore.Components.Web;

global using Havit.Diagnostics.Contracts;
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Text.RegularExpressions;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Pages;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.Reflection;
using System.Text;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;
using LoxSmoke.DocXml;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.AspNetCore.Components;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Pages;
namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Pages;

public class PerformanceLoggingComponentBase : ComponentBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using System.Globalization;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Text.RegularExpressions;
using System.Text.RegularExpressions;
using System.Web;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Model;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Pages;
using Microsoft.CSharp;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Reflection;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Model;
using LoxSmoke.DocXml;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using Microsoft.JSInterop;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Model;
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Services;
using Microsoft.AspNetCore.Components;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.AspNetCore.Components;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;
namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

public partial class ComponentApiDocCssVariable
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Havit.Blazor.Components.Web.Bootstrap.Documentation.Pages;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Components;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;
namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

/// <summary>
/// An alert for the documentation with 3 available configurations. Wraps the <c>HxAlert</c> component.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Linq;
using System.Text.RegularExpressions;
using System.Text.RegularExpressions;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Components;
using System.Text.RegularExpressions;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;
namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared.Components;

public class TypeLink : ComponentBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using Microsoft.AspNetCore.Components;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared;
namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared;

public partial class MainLayout
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using System.Text.Json;

namespace Havit.Blazor.Components.Web.Bootstrap.Documentation.Shared;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.1.0" PrivateAssets="all" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using Microsoft.AspNetCore.Components;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq.Expressions;

namespace Havit.Blazor.Components.Web.Bootstrap.Tests.Forms;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Globalization;

namespace Havit.Blazor.Components.Web.Bootstrap.Tests.Forms;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Havit.Blazor.Components.Web.Bootstrap.Internal;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace Havit.Blazor.Components.Web.Bootstrap.Tests.Forms.Internal;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net6.0;net5.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Havit.Diagnostics.Contracts;
using Microsoft.Extensions.Logging;

namespace Havit.Blazor.Components.Web.Bootstrap;
namespace Havit.Blazor.Components.Web.Bootstrap;

/// <summary>
/// Single item for <see cref="HxAccordion"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Havit.Diagnostics.Contracts;

namespace Havit.Blazor.Components.Web.Bootstrap;
namespace Havit.Blazor.Components.Web.Bootstrap;

/// <summary>
/// <see href="https://getbootstrap.com/docs/5.2/components/alerts/">Bootstrap alert</see> component.<br />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Havit.Diagnostics.Contracts;

namespace Havit.Blazor.Components.Web.Bootstrap;
namespace Havit.Blazor.Components.Web.Bootstrap;

/// <summary>
/// <see href="https://getbootstrap.com/docs/5.2/components/badge/">Bootstrap Badge</see> component.<br />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Havit.Blazor.Components.Web.Bootstrap;
namespace Havit.Blazor.Components.Web.Bootstrap;

/// <summary>
/// Settings for the <see cref="HxCloseButton"/> and derived components.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Havit.Blazor.Components.Web.Infrastructure;
using Havit.Diagnostics.Contracts;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.Extensions.Localization;

Expand Down
Loading

0 comments on commit 38f356e

Please sign in to comment.