duke79 / boxofish

Movie reviews & ratings
https://play.google.com/store/apps/details?id=com.boxofish
Other
1 stars 0 forks source link

`cordova build windows` fails #3

Open duke79 opened 5 years ago

duke79 commented 5 years ago

MSBuild v4.0 is not supported, aborting. No valid MSBuild was detected for the selected target: AppPackages folder doesn't exist

duke79 commented 5 years ago

Try setting MSBUILDDIR env, Ref 1

Didn't work! Another issue. ENV var MSBUILDDIR is set C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin Building project: C:\Dev\boxofish\hybrid\platforms\windows\CordovaApp.Windows10.jsproj Configuration : debug Platform : anycpu Buildflags : /p:AppxBundle=Never MSBuildTools : C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin buildProject spawn: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild [ 'C:\\Dev\\boxofish\\hybrid\\platforms\\windows\\CordovaApp.Windows10.jsproj', '/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal', '/nologo', '/p:Configuration=debug', '/p:Platform=anycpu', '/p:AppxBundle=Never' ] { stdio: 'inherit' } C:\Dev\boxofish\hybrid\platforms\windows\CordovaApp.Windows10.jsproj(61,13): error MSB4226: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v1 5.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props" was not found. Also, tried to find "Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.WJProject.Default.props" in the fallback search path(s) for $(MSBuildExtensionsPath32) - "C:\Program Files (x86)\MSBuild" . These search paths are defined in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe.Config" . Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths. No valid MSBuild was detected for the selected target: Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1

duke79 commented 5 years ago

Try npm install -g node-gyp

Didn't work! Issue persists.

duke79 commented 5 years ago

SO Question | Unresolved

Should have worked with cordova-windows 6.0.0. but didn't. :(