NTVS 移动了 .d.ts 文件,现在找不到旧文件位置的 VSTSC 错误
NTVS Moved .d.ts files now VSTSC error not found with old file location
所以我将我的 .d.ts
文件从 Scripts/typings/node/node.d.ts
移到了 typings/node/node.d.ts
,现在它给我错误:
Error 2 Build: File
'~/Source/Repos/mobiledlr/mobiledlr/Scripts/typings/node/node.d.ts'
not found. VSTSC 0 1 mobiledlr
是否有刷新或重建 VSTSC 的方法?
.njsproj
项目文件中有旧路径引用。我只是将它们更改为正确的路径。
好久没和Visual Studio一起工作了!我忘了如果你在 Visual Studio!
之外编辑它们
因此您不必更新 .njsproj
文件并在 外部工作 visual studio 您可以可靠地编辑它 once 包括类似的内容:
<ItemGroup>
<TypeScriptCompile Include="lib\**\*.ts" />
<Compile Include="lib\**\*.ts" />
</ItemGroup>
注意:您只需要小心添加文件 outside of visual studio 因为它喜欢用它的扩展覆盖这个可爱的 glob。
所以我将我的 .d.ts
文件从 Scripts/typings/node/node.d.ts
移到了 typings/node/node.d.ts
,现在它给我错误:
Error 2 Build: File
'~/Source/Repos/mobiledlr/mobiledlr/Scripts/typings/node/node.d.ts'
not found. VSTSC 0 1 mobiledlr
是否有刷新或重建 VSTSC 的方法?
.njsproj
项目文件中有旧路径引用。我只是将它们更改为正确的路径。
好久没和Visual Studio一起工作了!我忘了如果你在 Visual Studio!
之外编辑它们因此您不必更新 .njsproj
文件并在 外部工作 visual studio 您可以可靠地编辑它 once 包括类似的内容:
<ItemGroup>
<TypeScriptCompile Include="lib\**\*.ts" />
<Compile Include="lib\**\*.ts" />
</ItemGroup>
注意:您只需要小心添加文件 outside of visual studio 因为它喜欢用它的扩展覆盖这个可爱的 glob。