summaryrefslogtreecommitdiff
path: root/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/dotnet/nuget-sln/src/web/Program.cs')
-rw-r--r--spec/fixtures/dotnet/nuget-sln/src/web/Program.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs b/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs
new file mode 100644
index 0000000..b59641b
--- /dev/null
+++ b/spec/fixtures/dotnet/nuget-sln/src/web/Program.cs
@@ -0,0 +1,26 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Hosting;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+
+namespace web
+{
+ public class Program
+ {
+ public static void Main(string[] args)
+ {
+ CreateHostBuilder(args).Build().Run();
+ }
+
+ public static IHostBuilder CreateHostBuilder(string[] args) =>
+ Host
+ .CreateDefaultBuilder(args)
+ .ConfigureWebHostDefaults(webBuilder => {
+ webBuilder.UseStartup<Startup>();
+ });
+ }
+}