如何在Visual Studio 2015 RC中为ASP.NET 5 MVC 6项目设置TypeScript编译器版本? [英] How do I set the TypeScript compiler version for an ASP.NET 5 MVC 6 project in Visual Studio 2015 RC?

查看:78
本文介绍了如何在Visual Studio 2015 RC中为ASP.NET 5 MVC 6项目设置TypeScript编译器版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我现在很想这本书.就像标题中的问题一样,我正在尝试为示例ASP.NET 5 MVC 6项目设置tsc版本.我正在使用Visual Studio 2015 RC,并且想使用最近发布的1.5 Beta版来编译TypeScript.在VS 2013中,这是项目属性中的一个选项页面.我以为可以设置一些不可思议的project.json值,但是不行.如果我什至可以关闭编译(版本1.4)并使用Gulp任务,那么即使这样我也可以算作进度.

So I'm now at my witts end with this one. As the question in the title asks, I'm trying to set the tsc version for a sample ASP.NET 5 MVC 6 project. I'm using Visual Studio 2015 RC and I want to compile TypeScript using version 1.5 Beta that was recently released. In VS 2013, this was an option page in the project properties. I thought there would be some magic project.json value I could set, but nope. If I could even turn off the compilation (version 1.4) and use a Gulp task, even that would I could count as progress.

推荐答案

在ASP.NET 5中根本无法做到这一点.这是您应该在内部任务或咕gr任务中处理的事情.请参阅此示例grunt任务以获取打字稿. .它基于您具有的依赖项用于grunt打字稿插件.

There is no way to do this in ASP.NET 5 natively. This is something you should handle inside gulp or grunt tasks. See this sample grunt task for typescript. It is based on the dependency you have for grunt typescript plugin.

这篇关于如何在Visual Studio 2015 RC中为ASP.NET 5 MVC 6项目设置TypeScript编译器版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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