在Visual Studio 2015中设置TypeScript选项 [英] Setting TypeScript options in Visual Studio 2015

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

问题描述

ExperimentalDecorators   value.

There are a number of setting for TypeScript that would normally be specified in a tsconfig.json file.  For example, I would like to set the   ExperimentalDecorators value.

VS 2015支持添加tsconfig.json文件,该文件默认具有以下内容:

 VS 2015 supports adding a tsconfig.json file which by default has this content:

但是,尝试构建会导致以下错误:无法获取属性'compilerOptions'的值:对象为null或未定义"

However, attempting to build causes this error: "Unable to get value of the property 'compilerOptions': object is null or undefined"

Some people have suggesting adding to the project file:

<PropertyGroup Condition="'$(Configuration)' == 'Debug'">

... <TypeScriptExperimentalDecorators>True</TypeScriptExperimentalDecorators> </PropertyGroup>

That's rejected too.  I can find no way to fix this.

克雷格

推荐答案

嗨克雷格,

您能告诉我们有关如何在VS2015中创建此项目的详细步骤吗?

Could you tell us the detailed steps about how you create this project in your VS2015?

是否与带有TyperScript的HTML应用程序"相关?项目?也许您可以使用一个驱动器分享一个简单的示例,我会在我的身边进行测试.

Is it related to the "HTML Application with TyperScript " project? Maybe you could share me a simple sample using one drive, I will test it in my side.

实际上,这个论坛是讨论VS IDE的用法,根据您的描述,该问题将与特定项目有关.

Actually this forum is to discuss the VS IDE usage, based on your description, this issue would be related to the specific project.

(1)如果可能,请在其他VS2015计算机上对其进行测试,如果仍然存在此问题,我想我们将与开发团队成员讨论此问题.

(1) If possible, please test it in other VS2015 machine, if it still has this issue, I think we would discuss this issue with the developing team members.

(2)但是,如果它在其他VS中运行良好,也许我们会考虑VS环境.例如,设置或其他设置.

(2) But if it worked well in other VS, maybe we would think about the VS Environment. For example, the setup or others.

基于TyperScript的官方网站,它提供了一些受支持的方式,也许您可​​以获得更好的响应:

Based on the TyperScript's official site, it provides some supported ways, maybe you could get better response there:

https://www.typescriptlang.org/community/index.html

如果我对这个问题有误解,请随时告诉我.

If I have misunderstood this issue, please feel free to let me know.

最好的问候,

Jack


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

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