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.