【问题标题】:Anyone been able to use Angular 4 Quickstart with Visual Studio 2015?任何人都可以在 Visual Studio 2015 中使用 Angular 4 快速入门吗?
【发布时间】:2017-03-25 18:03:12
【问题描述】:

当前的 Angular 快速入门:https://github.com/angular/quickstart 现在将 index.html 和相关文件放在 src 文件夹下。

尝试使用 F5 将 Visual Studio 2015 中的代码作为 asp.net 4.x(非核心)项目运行时,它无法在 src 文件夹中找到文件。它使用 browser-sync(使用 npm run)工作,因为 bs-config 文件重新定义了基本路径。有什么类似的东西可以让 F5 体验发挥作用吗?

【问题讨论】:

标签: asp.net angularjs visual-studio


【解决方案1】:

Visual Studio Code 对于 Angular 4 比 Visual Studio 2015 好得多(准确地说,Visual Studio 2017,因为你不能下载 Visual Studio 2015 社区,但现在是 2017) 以防万一您想要 angular 4 的 asp.netcode,这里是示例: https://github.com/Longfld/ASPNETCoreAngular4

【讨论】:

  • 感谢您的帖子...我同意。但是有些开发人员想要(或必须)使用 Visual Studio 2015/17。我正在与 Angular 文档团队合作,试图为这种情况汇总说明,并希望找到一个可行的解决方案。再次感谢。
【解决方案2】:

请参阅基于角度快速入门的this repo。 希望对你有用。

https://github.com/mortezadalil/angular4-Mvc5

【讨论】:

    猜你喜欢
    • 2010-09-25
    • 2012-05-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-30
    • 1970-01-01
    • 2019-06-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多