29 lines
825 B
C#
Executable File
29 lines
825 B
C#
Executable File
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.IO;
|
|
using Microsoft.AspNetCore.Builder;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace WatchJavascriptFiles
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var host = new WebHostBuilder()
|
|
.UseKestrel()
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
.Configure(app =>
|
|
app.Run(async (context) =>
|
|
{
|
|
await context.Response.WriteAsync("Hello World!");
|
|
}))
|
|
.Build();
|
|
|
|
host.Run();
|
|
}
|
|
}
|
|
}
|