While toying around with ASP.NET Core on Ubuntu 16.04.1 LTS and Visual Studio Code 1.5.3 I've come across this issue. Here's what I did:
dotnet new -t Web
, dotnet restore
, dotnet build
).The startup seems to have the static file serving command:
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
also, the Startup
class's method contains a call to UseStaticFiles()
.
I also uploaded a video of the steps here. The project's code is here.
It seems that I had to run
sudo bower install --allow-root
in order to have those assets installed locally. As for being able to run bower
you need to have npm and git installed (usually they are), xcodebuild license agreed (on OS X) and other small things in order.