【问题标题】:VS2017 Issue with typescript compiler options path not being supported by MS buildVS2017 MS 版本不支持 typescript 编译器选项路径的问题
【发布时间】:2018-02-27 22:05:09
【问题描述】:

根据文档,我已经发现 MSBuild for VS2017 目前不支持 tsconfig.json 中的路径。但是,我希望有人可能有解决方法。

tsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "paths": {
      "@example/utils/*": ["app/utils/*"],
      "@example/pipes/*": ["app/pipes/*"]
    }
  }
}

【问题讨论】:

    标签: typescript msbuild visual-studio-2017 compiler-options


    【解决方案1】:

    MS build 不支持 typescript 编译器选项路径的 VS2017 问题

    如果你想通过 MSBuild 属性指定编译器选项路径,恐怕你不能这样做。

    正如我们所知,编译器选项可以在 MSBuild 项目中使用 MSBuild 属性指定,但某些选项仅允许tsconfig.json 中,而不是通过命令行开关和编译器选项 paths

    看来我们目前无法通过 MSBuild 指定编译器选项路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-05
      • 2021-04-01
      • 2013-11-22
      • 1970-01-01
      • 2016-03-27
      相关资源
      最近更新 更多