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 MVC 6项目设置tsc版本。我正在使用Visual Studio 2015 RC,我想使用最近发布的1.5版Beta编译TypeScript。在VS 2013中,这是项目属性中的选项页面。我以为会有一些神奇的project.json值,我可以设置,但不是。如果我甚至可以关闭编译(版本1.4)并使用Gulp任务,即使这样我也算作进步。
1 个解决方案
#1
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.
在ASP.NET 5中无法本机地执行此操作。这是你应该在gulp或grunt任务中处理的事情。有关打字稿,请参阅此示例grunt任务。它基于您对grunt typescript插件的依赖性。
#1
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.
在ASP.NET 5中无法本机地执行此操作。这是你应该在gulp或grunt任务中处理的事情。有关打字稿,请参阅此示例grunt任务。它基于您对grunt typescript插件的依赖性。