科尔多瓦构建失败到2017年的错误从如下输出:科尔多瓦打造VS失败,因为升级2017年
Building project: C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : x64
C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj(61,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
1>MSBUILD : cordova-build error : Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
1>Done building project "PresalesApp.jsproj" -- FAILED.
有无都安装了一下模块和所有Windows 10 UWP项目似乎被安装。
其他人从15-17升级并有类似的问题?
放牧,生成日志:
1> Task "CreateBuildInfoMetadata" skipped, due to false condition; ('$(Platform)' == 'android' AND '$(TelemetryEnabled)' == 'True') was evaluated as ('Windows-x86' == 'android' AND 'True' == 'True').
1> Using "CreateBuildInfoMetadata" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1> Task "CreateBuildInfoMetadata"
1> Done executing task "CreateBuildInfoMetadata".
1> Using "VsTac" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1> Task "VsTac"
You have been opted out of telemetry. To change this, run: cordova telemetry on.
[VSTAC_VERBOSE]No scripts found for hook "before_build".
[VSTAC_VERBOSE]No scripts found for hook "before_prepare".
[VSTAC_VERBOSE]Checking config.xml for saved platforms that haven't been added to the project
[VSTAC_VERBOSE]Checking for any plugins added to the project that have not been installed in windows platform
[VSTAC_VERBOSE]No differences found between plugins added to project and installed in windows platform. Continuing...
[VSTAC_VERBOSE]Generating config.xml from defaults for platform "windows"
[VSTAC_VERBOSE]Found "merges" for windows platform. Copying over existing "www" files.
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square150x150Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square150x150Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square150x150Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square150x150Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square30x30Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square30x30Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square310x310Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square310x310Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square44x44Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square44x44Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square44x44Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square44x44Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square70x70Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square70x70Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square71x71Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square71x71Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Square71x71Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Square71x71Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\StoreLogo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\StoreLogo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\StoreLogo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\StoreLogo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Wide310x150Logo.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Wide310x150Logo.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\icons\windows\Wide310x150Logo.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\Wide310x150Logo.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\screens\windows\SplashScreen.scale-100.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\SplashScreen.scale-100.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\screens\windows\SplashScreen.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\SplashScreenPhone.scale-240.png
[VSTAC_VERBOSE]Copying image from C:\code\presales\PresalesApp\PresalesApp\res\screens\windows\SplashScreenPhone.scale-240.png to C:\code\presales\PresalesApp\PresalesApp\platforms\windows\images\SplashScreenPhone.scale-240.png
[VSTAC_VERBOSE]Updated project successfully
[VSTAC_VERBOSE]No scripts found for hook "pre_package".
[VSTAC_VERBOSE]Executing script found in plugin cordova-plugin-ms-adal for hook "after_prepare": plugins\cordova-plugin-ms-adal\scripts\prePackage-windows.js
[VSTAC_VERBOSE]Resolving module name for shelljs => shelljs
[VSTAC_VERBOSE]Resolving module name for path => path
[VSTAC_VERBOSE]Resolving module name for fs => fs
[VSTAC_VERBOSE]Checking config.xml for saved plugins that haven't been added to the project
------ Building platform: windows
------ Build configuration options: --debug -- --win --archs x86
You have been opted out of telemetry. To change this, run: cordova telemetry on.
[VSTAC_VERBOSE]No scripts found for hook "before_compile".
[VSTAC_VERBOSE]Reading build config file: C:\code\presales\PresalesApp\PresalesApp\build.json
[VSTAC_VERBOSE]Searching for available MSBuild versions...
[VSTAC_VERBOSE]Found MSBuild v12.0 at C:\Program Files (x86)\MSBuild\12.0\bin\
[VSTAC_VERBOSE]Found MSBuild v14.0 at C:\Program Files (x86)\MSBuild\14.0\bin\
[VSTAC_VERBOSE]Found MSBuild v4.0 at C:\Windows\Microsoft.NET\Framework\v4.0.30319\
Building project: C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : x86
C:\code\presales\PresalesApp\PresalesApp\platforms\windows\CordovaApp.Windows10.jsproj(61,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
1> MSBUILD : cordova-build error : Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
1> Done executing task "VsTac" -- FAILED.
1>Done building target "BuildMDA" in project "PresalesApp.jsproj" -- FAILED.
1>
1>Done building project "PresalesApp.jsproj" -- FAILED.
1>
1>Build FAILED.
1>
在我的编译工具文件夹(C:\ Program Files文件(x86)的\的MSBuild \微软\ VisualStudio的\ V15.0)没有一个Javascript文件夹,只有打字稿文件夹,但是我在安装BuildTools时选择了所有选项?
你应该可以得到更多的错误信息。请更改Debug中的设置,点击Options ...,打开Projects和Solutions。在构建和运行中,请将MSBuild项目构建输出详细程度设置为Detailed并将MSBuild项目构建构建日志文件的详细程度设置为Detailed。 –
@ JaydenGu-MSFT谢谢,更新了更多信息 –