No TypeScript files in VS2017
See original GitHub issue[moved from https://github.com/Microsoft/msbuild/issues/1354]
Just downloaded VS2017 and migrated my project.json-based project. This was created using the Angular 2 template that can be found in https://github.com/aspnet/JavaScriptServices.
Now my TypeScript files are not shown and there are many .js and .map.js files created automatically.
What would be the correct configuration to have what I had before this?
After posting the original question I found these settings are enough for my scenario, but the migration experience still wasn’t complete and that’s a bug in my opinion:
<PropertyGroup>
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
</PropertyGroup>
<ItemGroup>
<None Include="ClientApp\**\*.scss" />
<None Include="ClientApp\**\*.ts" />
</ItemGroup>
Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Visual Studio 2017 not compiling typescript
I recently updated to VS 2017 and I'm using a solution that used to work perfectly in VS 2015. I have enabled the...
Read more >typescript not compiling in VS2017 · Issue #16642
When i save ts file in VS2017 it tels me 'Item(s) Saved' but do not ... Automatically compile TypeScript files witch are not...
Read more >Visual studio stops compiling TS files when the installed ...
Visual studio stops compiling TS files when the installed version of TypeScript is newer than the project specified version. - Developer Community.
Read more >Debug a JavaScript or TypeScript app in Visual Studio
Visual Studio provides support for debugging JavaScript and TypeScript apps in Visual Studio.
Read more >Broken TypeScript "compileOnSave" build tooling for VS2017
Only the "files" file that is being saved will be transpiled and written to disk. This works under VS2015, but not under VS2017....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems like it should be possible to migrate:
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
value if it’s is present in the.xproj
that’s being migrated.ts
,.js
,.json
,.css
,.less
,.sass
,.png
, etc.), like they did with.xproj
Ok, seems like migration will get it for free then. I am closing this issue. If there is something else we should do as part of migration for this, please, re-activate.