首页 文章

Asp.net Core 2 - Angular模板(One Solution)

提问于
浏览
0

使用Angular One soluton模板下载ASP.NET Core后,我有一些问题需要启动项目 . 我用iis express开始,但客户端应用程序无法启动 . https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template-Core有什么建议吗?

2 回答

  • 0

    您无法从VS运行/调试角度项目 . 因为Angular项目使用Angular-CLI运行 . 用于调试检查以下链接 .

    尝试使用Visual Studio代码并添加Chrome debugging扩展并将配置添加到launch.json,如下所示 .

    {  
        "version": "0.2.0",  
        "configurations": [{  
            "name": "Launch Chrome against localhost",  
            "type": "chrome",  
            "request": "launch",  
            "url": "http://localhost:4200",  
            "sourceMaps": true,  
            "webRoot": "${workspaceRoot}",  
            "sourceMapPathOverrides": {  
                "webpack:///./*": "${workspaceRoot}/*"  
            }  
        }]  
    }
    

    您还可以参考此文档以获取更多详细信息 . https://code.visualstudio.com/docs/languages/typescript

  • 1

    合并解决方案是一种结构,其中角度和主机项目文件位于同一目录中 . 这并不意味着主机和客户端应用程序在IIS Express中启动 . 因此,您无法在IIS Express中运行Angular . 只需运行 npm start .

相关问题