3

How can I view the generated javascript files with the typescript file in Visual studio 2015?

Note: Javascripts files generated are present in the File Explorer but are not visible in the solution explorer.

Moreover, I tried to add the _references.ts file in the root directory of the project however, there was no 'Update Typescript references' as available in javascript's _references.js file

2
  • Check out the preview functionality in web essentials. Commented Sep 28, 2015 at 17:40
  • @David Feature has been be removed. Might come back in the future Commented Sep 3, 2016 at 5:33

1 Answer 1

4

Solution

In solution explorer exist button with name show all files, just click it and you would see all files in the project folder

How to show all files in the solution explorer

See also

Sign up to request clarification or add additional context in comments.

7 Comments

Oh! But why are generated javascript files not visible by default? Moreover, is there a way to auto add references to _references.ts file just like we do with _references.js file? Is there a need to do this or _references.js would take care of it?
because VS does know anything about your generated files, also it may cause error, because if you compile d.ts file the IntelliSense would tell you that in the project has already existed class or function with the same name, that is why this files does not included to project by default
Got it, the link in the answer cleared my doubt. However, I still have one more doubt: How can we auto reference all the typescript files in the _references.ts file. I see no option to auto-sync or update references like we have in _references.js
What do you mean under auto-reference? Usually, I create one file, where manually store all references to project files, intellisense take care in this case about in what order modules should compiled in result files
There is an auto-sync option provided for _references.js file that would search for all javascript files and reference them automatically. Is there something similar available for _references.ts?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.