Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Edwards <damian@damianedwards.com>2021-07-10 04:20:33 +0300
committerGitHub <noreply@github.com>2021-07-10 04:20:33 +0300
commitd8bba727bdfaa3abf196c7f7c476966ed4af6692 (patch)
tree16c6085391e70b2fa304fe054ac4cc23ababc2c9 /src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp
parent952062eb2b2888b86a65b0e5fc4bc0651f3818c9 (diff)
Remove usings from templates implicitly added by the SDK (#34219)
-Depends on dotnet/sdk#18459 flowing to dotnet/aspnetcore repo before we can merge this - There's a couple of places we could remove usings from .razor files but need to verify the global usings flow into Razor compiler (#34217) - Reordered usings in some places to ensure they get emitted in alphabetical order (modulo System.* & Microsoft.* coming before any others)
Diffstat (limited to 'src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp')
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs2
-rw-r--r--src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Worker.cs8
2 files changed, 0 insertions, 10 deletions
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs
index c8c061803c..52f7e3e88e 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Program.cs
@@ -1,5 +1,3 @@
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
using Company.Application1;
IHost host = Host.CreateDefaultBuilder(args)
diff --git a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Worker.cs b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Worker.cs
index de17471514..a0c03d969f 100644
--- a/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Worker.cs
+++ b/src/ProjectTemplates/Web.ProjectTemplates/content/Worker-CSharp/Worker.cs
@@ -1,11 +1,3 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-
namespace Company.Application1
{
public class Worker : BackgroundService