科爾多瓦構建失敗到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謝謝,更新了更多信息 –