我已经使用cordova创建了hello示例项目。
如果我输入cordova要求,我得到:
Requirements check results for windows:
Windows OS: installed Windows 10
MSBuild Tools: installed 14.0
Visual Studio: installed 16.9
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0
如果我输入cordova run windows,我会得到:
Building project: C:\Users\User\Desktop\hello\hello\platforms\windows\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : anycpu
Buildflags : /p:AppxBundle=Never
MSBuildTools : C:\Program Files (x86)\MSBuild\14.0\bin
buildProject spawn: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild [
'C:\\Users\\User\\Desktop\\hello\\hello\\platforms\\windows\\CordovaApp.Windows10.jsproj',
'/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal',
'/nologo',
'/p:Configuration=debug',
'/p:Platform=anycpu',
'/p:AppxBundle=Never'
] { stdio: 'inherit' }
C:\Users\User\Desktop\hello\hello\platforms\windows\CordovaApp.Windows10.jsproj(61,5): 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.
No valid MSBuild was detected for the selected target: Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild: Command failed with exit code 1
我该怎么做才能让它发挥作用?
提前致谢。