在 VS2013 中打开 Cordova 项目时出错
Error when opening Cordova Project in VS2013
当我尝试打开 cordova 时出现以下错误project.Can任何人都可以帮助我解决我的问题。
C:\Documents\myproject.jsproj :
error : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.TypeScript.MDA.targets"
was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
C:\Documents\myproject.jsproj
从报错信息来看,这个项目是针对VisualStudio\v14.0
,VS2015自带的。但是你目前使用的是VS2013,所以你会得到这个错误。
最好的解决方案是迁移到 VS2015。
如果您确实希望此项目在 VS2013 上 运行,您可以尝试使用 VS2013 创建一个新的空白 Cordova 项目并将源代码从现有项目迁移到空白项目。
有一份文档可能会有所帮助:Migrate a Visual Studio 2013 project to Visual Studio 2015。
当我尝试打开 cordova 时出现以下错误project.Can任何人都可以帮助我解决我的问题。
C:\Documents\myproject.jsproj :
error : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.TypeScript.MDA.targets"
was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
C:\Documents\myproject.jsproj
从报错信息来看,这个项目是针对VisualStudio\v14.0
,VS2015自带的。但是你目前使用的是VS2013,所以你会得到这个错误。
最好的解决方案是迁移到 VS2015。
如果您确实希望此项目在 VS2013 上 运行,您可以尝试使用 VS2013 创建一个新的空白 Cordova 项目并将源代码从现有项目迁移到空白项目。
有一份文档可能会有所帮助:Migrate a Visual Studio 2013 project to Visual Studio 2015。