今天从VS2015升级到VS2017, 一个.net Core 的project出现build failed,提示The "IsFileSystemCaseSensitive" parameter is not supported by the "FindConfigFiles" task. 发现指向C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.5\build\Microsoft.TypeScript.targets. 本身要用2.1的tsc,这个指向的是2.5的,之前已经在csproj里添加过

<TypeScriptToolsVersion>2.1</TypeScriptToolsVersion>

为什么还会指向2.5?

后来发现csproj文件里有

    <PackageReference Include="Microsoft.TypeScript.Compiler" Version="2.2.1" />
    <PackageReference Include="Microsoft.TypeScript.MSBuild" Version="2.2.1" />

修改为

    <PackageReference Include="Microsoft.TypeScript.Compiler" Version="2.1.5" />
    <PackageReference Include="Microsoft.TypeScript.MSBuild" Version="2.1.5" />

之后编译就正常了

 

相关文章:

  • 2021-04-02
  • 2021-09-06
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2022-02-16
  • 2021-06-27
  • 2022-03-04
猜你喜欢
  • 2021-07-29
  • 2021-07-03
  • 2021-04-02
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-22
相关资源
相似解决方案