visual-studio - 为什么我不能在 Visual Studio 中编译 Apache Cordova 项目?

标签 visual-studio cordova visual-studio-2012 typescript

我有这个警告和这个错误。你知道为什么吗?

enter image description here

我读了这个The TypeScript Compiler was given no files for compilation, so it will skip compiling

但我还是卡住了。

我也检查过这个:

enter image description here

我已经卸载 visual studio 并重新安装,但我得到了相同的结果。 我在我的笔记本电脑上安装了带有 ApacheCordova 工具的 VS2013,我得到了相同的结果。

感谢帮助

最佳答案

要修复此警告,您可以删除 <Import Project="$(VSToolsPath)\TypeScript\Microsoft.TypeScript.targets" />在你的 .csproj 行文件(在本例中它可能是 .jsproj 顺便说一下)。您可以在您最喜欢的文本编辑器中打开它。

当然,如果您打算使用 TypeScript,您可以随时将其添加回去。

编辑:

关于你的错误的第二部分,你能把输出窗口的输出贴出来吗,你可能会看到那里发生了什么。

如果这没有给您足够的信息,您可以打开“工具”->“选项”,然后在左侧转到“项目和解决方案”并选择“构建并运行”。如果您将 MSBuild 项目构建输出详细程度更改为“诊断”,您可能会在那里找到一些东西。

关于visual-studio - 为什么我不能在 Visual Studio 中编译 Apache Cordova 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29220357/

相关文章:

visual-studio - 在 VsVim 中重新加载配置文件?

C++ 无法识别 DLL 中的命令

java - 找不到 JAVA_HOME Linux Mint : Trying to use Cordova to build an Android App

java - Cordova 到 Android studio 错误 malformed\uxxxx 编码

jquery - Android 上的两个 json 请求后 phonegap 应用程序崩溃

c# - Visual Studio - 我可以通过网络在 CE 设备上调试我的应用程序吗

c# - 来自 Visual Studio 2017 的 Azure 函数调试连接出现 'N/A' 监听器连接错误

c# - Silverlight 5 VS 2012 单元测试

visual-studio - Visual Studio帮助系统针对错误的框架版本

tfs - 我刚刚安装了 Visual Studio 2012,但在源代码管理> 状态中看不到查找选项