无法在Visual Studio 2017中使用TypeScript [英] Can't use TypeScript in Visual Studio 2017

查看:531
本文介绍了无法在Visual Studio 2017中使用TypeScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这些技术的新手。


我刚刚安装了Visual Studio 2017.我尝试开箱即用。


我使用了Basic Node.js Express 4应用程序(TypeScript)并且遇到了很多错误。


据我所知,所有这些都基于没有tsconfig.json,


必须从处理中排除* .d.ts文件。另外我了解到人们使用VS Code 

而不是Visual Studio for node.js项目。是否可以在VS 2017中工作而不是两个IDE?


我找到的所有变种tsconfig对我不起作用(或者我错误地使用它)。


我在这里丢了什么?我无法想象某些模板不会在没有代码修改的情况下启动。


我可以在哪里找到信息 这些东西在Visual Studio中是如何工作的?


我尝试为这个问题选择正确的位置。但是在"Visual Studio Languages"节点中我找不到JavaScript和TypeScript。是否支持这些语言? 




$





解决方案

我刚读过这篇文章:

https://social.msdn.microsoft.com/Forums/en -US / bc7e19b2-b1b9-4092-8b38-84e5847eebf1 / visual-studio-2017-disable-typescript-compile?forum = visualstudiogeneral


我确认,所有产生的文件我的项目中没有包含错误。

另外,我在Options.Please  help中取消选中了"自动编译不属于项目的TypeScript文件"框。 


I'm new in these technologies.

I just installed Visual Studio 2017. I try to start example out of the box.

I used Basic Node.js Express 4 Application (TypeScript) and got many errors.

As I understand from Internet all of them based on absence of tsconfig.json,
which have to exclude *.d.ts files from processing. Also I learned that people use VS Code 
instead Visual Studio for node.js projects. Is it possible to work in VS 2017 instead two IDE?

All variants tsconfig I found doesn't work for me (or I wrong use it).

What I lost here? I can't imagine that some templates do not start with no code modification.

Where I can find information how this stuff works in Visual Studio?

I tried choose correct place for this question. But in "Visual Studio Languages" node I can't find JavaScript and TypeScript. Are these languages supported? 

解决方案

I just read this post:
https://social.msdn.microsoft.com/Forums/en-US/bc7e19b2-b1b9-4092-8b38-84e5847eebf1/visual-studio-2017-disable-typescript-compile?forum=visualstudiogeneral

I confirm, all files which produce an errors not included to my project.
Also, I have unchecked box "Automatically compile TypeScript files which are not part of project" in Options.Please help. 


这篇关于无法在Visual Studio 2017中使用TypeScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆