admin管理员组文章数量:1353158
I am using Visual Studio 2013 Update 1
I have written some code in TypeScript some days before, but most part of the code is mented.
Today, I unmented that code and trying to debug JavaScript file.
The strange thing is that I am seeing mented code in generated dynamic JavaScript.
My guess is that TypeScript is bringing this code from Cache.
So, to clear this cache I have restarted Visual Studio, cleared Internet Explorer Browser Cache, done iisreset, restarted system... all the pains with no luck.
Not understanding how to solve the problem!
I am using Visual Studio 2013 Update 1
I have written some code in TypeScript some days before, but most part of the code is mented.
Today, I unmented that code and trying to debug JavaScript file.
The strange thing is that I am seeing mented code in generated dynamic JavaScript.
My guess is that TypeScript is bringing this code from Cache.
So, to clear this cache I have restarted Visual Studio, cleared Internet Explorer Browser Cache, done iisreset, restarted system... all the pains with no luck.
Not understanding how to solve the problem!
Share Improve this question asked Apr 3, 2014 at 16:06 Ashok kumarAshok kumar 1,6205 gold badges36 silver badges74 bronze badges 3- TypeScript pile is not running – basarat Commented Apr 3, 2014 at 22:13
- @basarat: I could see the generated JavaScript code in .js file – Ashok kumar Commented Apr 4, 2014 at 5:19
- delete the .js file. See if it es back. Does it e back different? – basarat Commented Apr 4, 2014 at 13:06
2 Answers
Reset to default 3I can see the same behavior in Visual Studio Code. It kind of caches the .ts files, so when I do a build using Ctrl+Shift+B it generates the .js file using the old .ts files. Restarting visual studio helps.
TypeScript does not cache output.
Have you confirmed that any pilation is happening at all? Does the "modified" date on the .js file change?
本文标签: visual studio 2013TypeScript JavaScript Cache issueStack Overflow
版权声明:本文标题:visual studio 2013 - TypeScript JavaScript Cache issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743903664a2559129.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论