The "IsFileSystemCaseSensitive" parameter is not supported by the "FindConfigFiles...

今天從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裏添加過ui

<TypeScriptToolsVersion>2.1</TypeScriptToolsVersion>

爲何還會指向2.5?spa

後來發現csproj文件裏有.net

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

修改成code

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

以後編譯就正常了blog

相關文章
相關標籤/搜索