How to stop visual studio from generating typescript js and js.map files on publish

I have set my project to from combine javascript output into file

to $(ProjectDir)dist\output.js

and unchecked generate source maps

.

Tools -> Options -> Text Editor -> Typescript -> Project -> Automatically compile Typescript files which are not part of a project

also not installed.

When building and running the project from visual studio, it works as expected: only generates output.js

files.

However, when posting my project, it still generates js and js.map foreach.ts files.

When I check the file myproject.pubxml.user

, it says:

<File Include="app/app.module.js">
  <publishTime>06/16/2015 17:41:13</publishTime>
</File>
<File Include="app/app.module.js.map">
  <publishTime>06/16/2015 17:41:13</publishTime>
</File>
<File Include="app/app.routes.js">
  <publishTime>06/16/2015 17:41:13</publishTime>
</File>
<File Include="app/app.routes.js.map">
  <publishTime>06/16/2015 17:41:13</publishTime>
</File>
<File Include="app/controllers/account/loginController.js">
  <publishTime>06/16/2015 17:41:13</publishTime>
</File>

      

How can I stop Visual Studio from creating these unwanted .js and map.js files?

+3


source to share


1 answer


However, when posting my project, it still generates js and js.map foreach.ts files.



You probably have a different configuration for debug

and release

. Make them the same.

+5


source







All Articles