我有一个关于HTML5项目的Typescripts,当我使用vs2013 IDE编译项目时,JS文件将正确生成,但是当我使用命令行编译项目时,JS文件变量将最终定义该文件,有谁知道,为什么会发生?
批处理脚本:
SET buildDir=C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE
"%buildDir%\DEVENV" "%projectDir%\xxx.sln" /rebuild "Release|Any CPU" /useenv
的
的
JS档案:
的
的var Greeter = (function () {
function Greeter(element) {
this.element = element;
this.element.innerHTML += "The time is: ";
this.span = document.createElement('span');
this.element.appendChild(this.span);
}
Greeter.prototype.start = function () {
};
Greeter.prototype.stop = function () {
clearTimeout(this.timerToken);
};
return Greeter;
})();
window.onload = function () {
var el = document.getElementById('content');
var greeter = new Greeter(el);
greeter.start();
};
var ListBo1x = System.Windows.Controls;
var Action1 = System.Action;
var Date1 = System.DateTimeConventions;
的