Visual Studio 2013 Javascript Intellisense syncs file in obj folder. Is it possible to exclude folders from syncing?

StackOverflow https://stackoverflow.com/questions/20422163

문제

I've set up the _references.js file to contains references to javascript I need. I turned on the autosync option and everything is fine. Intellisense works as expected.

The problem is that when I publish my project (I precompile and merge all output to a single assembly) the obj\Release\Package\PackageTmp\Scripts folder is filled with javascript files I have in my project (and that I already referenced in _references.js) and the _references.js gets automatically synced and those files are added to it which is very bad.

Is there a way to prevent it?

도움이 되었습니까?

해결책

This only happens when you have "Show All Files" enabled in the Solution Explorer. Turn it off and all of the references to "../obj/*" will be removed. Whether this is a bug or by design, I do not know, but I've started this issue on Connect to find out.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top