Visual Studio 2015 www local project only showing Hello World -
i'm trying create basic aurelia app using vs2015. able jspm install files needed , created app.js , app.html , index.html files when try run app see hardcoded text see 'hello world!' in browser. try change text else keeps coming hello world. followed example scott allen on pluralsight. pull sup fine cannot. can tell me i'm doing wrong? how index.html , not whatever showing hello world text? table structure such
solution |_solution items |_ global.json |_src |_ demo |_ properties |_ references |_ wwwroot |_ jspm_packages |_ app.html |_ app.js |_ index.html |_ config.js |_ dependencies |_ package.json |_ project.json |_ startup.cs
if creating asp.net v5 application may not have set solution able serve static files.
in startup.cs there configure method need enable using static files. configure method ending looking in order work.
public void configure(iapplicationbuilder app) { app.useiisplatformhandler(); app.usedefaultfiles(); app.usestaticfiles(); app.run(async (context) => { await context.response.writeasync("hello world!"); }); } in project.json had add dependency of
"microsoft.aspnet.staticfiles": "1.0.0-rc1-final"
Comments
Post a Comment