Angular 6 with ASP.NET Core, internal CMD not working properly

偶尔善良 提交于 2019-12-11 02:08:10

问题


Hello I have Angular 6 project with ASP.NET Core 2.0. backend. Working in Visual Studio. No server side rendering, just SPA.

When i run my project (F5), ng serve command automatically called by .Net, code below.

Produces new command line window, but it seems like the styles (line rewriting, text progress bars,...) not working.

app.UseSpa(spa =>
{
    spa.Options.SourcePath = "ClientApp";

    if (env.IsDevelopment())
    {
        spa.UseAngularCliServer(npmScript: "start");
    }
});

Text stops rendering, but Angular works, and I can't see any output.

Normal behavior: in CMD called ng serve

IMPORTANT:

BOTH solutions WORK, no difference, but I can't debug my errors

Is there some way to fix this? to make VS CMD do the same like mine normal CMD?

Solution does't need to be related to Angular stuff.

Thanks for your time.

Lubos

来源:https://stackoverflow.com/questions/50274171/angular-6-with-asp-net-core-internal-cmd-not-working-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!