Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generated *.js from *.ts in Visual Studio 2015

When I add a *.ts file to Visual Studio 2015 and this get compiled, the *.js file isn't a code behind file of the *.ts. It just resides in the folder and it's not part of the visual studio project.

Is that by design or did I break something in my project?

If it is by design, what is the motivation behind? (If i want to have a look at the file i have to show hidden files and eventually hit the refresh button... )

like image 422
gsharp Avatar asked Feb 10 '23 06:02

gsharp


1 Answers

This is by design - the JavaScript file is a build artefact, just like a DLL.

The idea is that you check in your TypeScript code and allow the build server to create your JavaScript files. While you may be running in "Debug" mode, the build server can generate them in "Release" mode, which may have more optimisations enabled.

like image 77
Fenton Avatar answered Feb 16 '23 17:02

Fenton