github.com/anchore/syft@v1.38.2/syft/pkg/cataloger/dotnet/test-fixtures/image-net8-compile-target/src/Program.cs (about) 1 using System; 2 using Microsoft.AspNetCore.Builder; 3 using Microsoft.Extensions.Hosting; 4 5 namespace HelloWorld 6 { 7 public class Program 8 { 9 public static void Main(string[] args) 10 { 11 var builder = WebApplication.CreateBuilder(args); 12 var app = builder.Build(); 13 14 // configure the HTTP request pipeline 15 if (!app.Environment.IsDevelopment()) 16 { 17 app.UseExceptionHandler("/Error"); 18 } 19 20 // enable serving static files (including jQuery) 21 app.UseStaticFiles(); 22 23 app.MapGet("/", () => "Hello World!"); 24 25 Console.WriteLine("Application starting..."); 26 app.Run(); 27 } 28 } 29 }