CordovaApp.Windows.jsproj(70,3):错误MSB4019:导入的项目 [英] CordovaApp.Windows.jsproj(70,3): error MSB4019: The imported project

查看:117
本文介绍了CordovaApp.Windows.jsproj(70,3):错误MSB4019:导入的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

完整错误日志:

C:\Users\user\Development\Tutorials\cordova-tutorial\hello\platforms\windows\CordovaApp.Windows.jsproj(70,3): error MSB4019: The imported project "C:\Program Files(x86)\MSBuild\Microsoft\VisualStudio\v14.0\Microsoft.VisualStudio..Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

在进行创建第一个应用程序(来自Cordova官方网站)的教程,在构建helloworld应用程序时,出现了我上面发布的错误.

While doing Create your first app tutorial from official Cordova website, when building the helloworld app, I got the error I've posted above.

我正在从命令行构建cordova项目,并使用 Visual C ++ 2015构建工具和Windows 10 SDK-但没有带内置工具的Visual Studio. 为什么?因为我当前项目的一部分是为开发环境做准备,以便使用Cordova构建Windows 10 UAP应用程序,而无需安装Visual Studio.

I'm building cordova project from commandline and using Visual C++ 2015 Build Tools and Windows 10 SDK - but not Visual Studio with built-in tools. Why? Because part of my current project, is to prepare dev environment for building Windows 10 UAP apps with Cordova, without need to install Visual Studio.

在没有安装Visual Studio且未安装工具的情况下,这里的任何人在构建Cordova Windows项目时都有相同或相似的问题吗?

Anybody here had same or similar problem with building Cordova windows projects without having Visual Studio with tools installed?

为什么需要解决此问题?

Why I need to do, to resolve this issue?

推荐答案

这里有人在没有安装Visual Studio且未安装工具的情况下构建Cordova Windows项目时存在相同或相似的问题吗?

Anybody here had same or similar problem with building Cordova windows projects without having Visual Studio with tools installed?

据我所知,缺少的目标文件与Visual Studio一起安装,而不是与

As far as I know the missing target files are installed together with the Visual Studio instead of the MSBuild Tools.

我创建了一个空白的win10环境(测试机),并同时安装了MSBuild工具和Windows 10 SDK,遇到了您遇到的问题,找不到Microsoft.VisualStudio.WJProject.Default.props.

I created a blank win10 environment(test machine) and installed both MSBuild tools also the Windows 10 SDK, I encountered the issue you have, the Microsoft.VisualStudio.WJProject.Default.props cannot be found.

然后,我检查了原始计算机(已安装Visual Studio 2015),然后在以下位置创建包含正确目标文件(C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ JavaScript)的文件夹与安装Visual Studio的日期相同.

Then I checked my original machine(have Visual Studio 2015 installed), the folder that contains the correct target files(C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\JavaScript) is created at the same date as Visual Studio installed.

因此Visual Studio安装了一些我们未安装的内容.我试图将 MSBuild文件夹从我的原始计算机复制到测试计算机,错误MSB4019已得到解决,但是我遇到了另一个错误:

So Visual Studio installed something that we did not install. I have tried to copy the MSBuild folder from my original machine to the test machine, the error MSB4019 has been resolved, but I got another error:

C:\ Program文件 (x86)\ MSBuild \ Microsoft \ VisualStudio \ v14.0 \ JavaScript \ Microsof t.VisualStudio.JavaScript.UAP.targets(82,3):错误:"10.0.14393.0" 不是TargetPlatformVersion的支持值.请更改 在项目属性"页面上.

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\JavaScript\Microsof t.VisualStudio.JavaScript.UAP.targets(82,3): error : "10.0.14393.0" is not a supported value for TargetPlatformVersion. Please change it on the Project Prop erty page.

在Internet上搜索后,TargetPlatformVersion与Windows SDK版本有关,然后我在项目文件中将其值更改为Windows SDK版本,但此错误仍然存​​在.

After search the Internet, the TargetPlatformVersion is related to the Windows SDK version, then I have changed the value to the windows SDK version in the project file, but this error is still persist.

很明显,最简单的方法来构建自己的Cordova Windows项目是安装Visual Studio.如果要使它在没有Visual Studio的情况下也可以工作,则有时需要进行大量工作.您需要安装正确的Windows/.NET Platform SDK.您可以并排安装多个这些SDK.您可能需要安装其他SDK才能编译您的应用程序.这些文件的所有下载均假定您还安装了Visual Studio,但是它们的许多有效负载也可以单独安装.可能会很麻烦.

Obviously, The easiest way to build your building Cordova windows projects is to install Visual Studio. If you want make it work without Visual Studio, it sometimes a lot of work to figure out. You'll need to install the right Windows / .NET Platform SDK. You can install multiple of these SDKs side by side. You might need to install further SDKs to get your application to compile. The downloads for these all assume that you also have Visual Studio installed, but many of their payloads can also be installed separately. It can become quite a hassle.

希望这可以为您提供帮助.

Hope this can help you.

这篇关于CordovaApp.Windows.jsproj(70,3):错误MSB4019:导入的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆