Typescript VS2017“;tsc.exe“;带代码退出
我正在使用VS2017,我在typescript编译方面遇到了问题typescript版本是2.2.3。我还安装了Typescript.Compiler、Microsoft.Typescript.Compiler、Typescript.MSBuildTask,安装这些软件包解决了以下问题。我看到很多人都会犯这个错误,但在VS15中,这些解决方案对我不起作用 错误为MSB6006“tsc.exe”,已退出,代码为1 当我双击它时,它引用了这个代码Typescript VS2017“;tsc.exe“;带代码退出,typescript,asp.net-core,Typescript,Asp.net Core,我正在使用VS2017,我在typescript编译方面遇到了问题typescript版本是2.2.3。我还安装了Typescript.Compiler、Microsoft.Typescript.Compiler、Typescript.MSBuildTask,安装这些软件包解决了以下问题。我看到很多人都会犯这个错误,但在VS15中,这些解决方案对我不起作用 错误为MSB6006“tsc.exe”,已退出,代码为1 当我双击它时,它引用了这个代码 <Target Name="CompileT
<Target Name="CompileTypeScriptWithTSConfig"
Condition="'$(BuildingProject)' != 'false' AND '@(ConfigFiles)' != ''"
DependsOnTargets="$(CompileTypeScriptDependsOn)">
<VsTsc
ToolPath="$(TscToolPath)"
ToolExe="$(TscToolExe)"
IsFileSystemCaseSensitive="$(IsFileSystemCaseSensitive)"
TSJavaScriptFile="$(TSJavaScriptFile)"
PreferredUILang="$(PreferredUILang)"
TSConfigFile="%(ConfigFiles.Identity)"
YieldDuringToolExecution="$(TscYieldDuringToolExecution)"
ProjectDir="$(TypeScriptProjectDir)"
ToolsVersion="$(TypeScriptEffectiveToolsVersion)"
TypeScriptCompileBlocked="$(TypeScriptCompileBlocked)"
ComputeOutputOnly="false"
OutputLogFile="$(CompilerOutputLog)">
<Output TaskParameter="GeneratedJavascript" ItemName="emittedFiles" />
</VsTsc>
<ItemGroup>
<GeneratedJavascript Include="@(emittedFiles)" KeepDuplicates="false" />
</ItemGroup>
<AssignTargetPath Files="@(GeneratedJavascript)" RootFolder="$(MSBuildProjectDirectory)">
<Output TaskParameter="AssignedFiles" ItemName="GeneratedJavascriptWithTargetPath" />
</AssignTargetPath>
<ItemGroup>
<FilesForPackagingFromProject Include="@(GeneratedJavascriptWithTargetPath->'%(Identity)')"/>
<ContentWithTargetPath Include="@(GeneratedJavascriptWithTargetPath->'%(Identity)')"/>
<Content Include="@(GeneratedJavascript->'%(Identity)')"/>
</ItemGroup>
</Target>
您可以从命令行传输它吗?或者您是否会遇到类似的错误?另外,请在不使用tsconfig的情况下尝试(仅使用Visual Studio属性)并查看您得到了什么。您可以从命令行传输它吗?或者您是否会遇到类似的错误?另外,在不使用tsconfig的情况下进行尝试(仅使用VisualStudio属性)并查看结果。
{
"compilerOptions": {
"module": "commonjs",
"allowJs": true,
"outDir": "out"
},
"exclude": [
[ "wwwroot/lib" ],
"out"
],
"compileOnSave": true,
"typeAcquisition": {
"enable": true,
}
}