【发布时间】:2019-03-14 10:11:47
【问题描述】:
我正面临这个错误,当我在 IIS 中使用 angularjs 发布我的应用程序时请帮助我,请帮助我如何使用 .net core 2.1 和 angularjs 解决这个错误。在视觉工作室工作正常我在 IIS 中面临这个错误
services.AddSpaStaticFiles(configuration =>
{
configuration.RootPath = "ClientApp/dist";
});
});
app.UseSpa(spa =>
{
// To learn more about options for serving an Angular SPA from ASP.NET Core,
// see https://go.microsoft.com/fwlink/?linkid=864501
spa.Options.SourcePath = "ClientApp";
if (env.IsDevelopment())
{
spa.UseAngularCliServer(npmScript: "start");
}
});
错误截图:
【问题讨论】:
-
Angular 1.x?还是角2及以上?
-
angular6........
-
您可以尝试在 Visual Studio 代码中编译并查看输出吗?
-
你有没有想出解决这个问题的办法?
标签: angular asp.net-core .net-core angular6