Cordova Build Windows 10 App on Mac OS X

Viewed 919

Hi there I hope this question wasn't answered anywhere else on SO, but 4h spent on research is enough for today. My simple question is, if it's possible to build a Windows10 App with cordova on Mac OS X (10.12). Why I want to do such kind of thingy is that I just set up jenkins for some of our projects and we are working with Xamarin, Cordava and native ones, I wanted to configure jenkins for each of them to automate iOS, Android and Windows builds. Everything is working so far, but when I try to build windows cordova app it fails with the following message:

cordova build windows --release
Error: spawn ENOTDIR

I watched the logs and recognized at some point cordova is trying to find MsBuildToolsPath in Registry with:

reg query ...

which is acceptable not working on Mac OS. So I tried to build with msbuild directly:

msbuild /p:Platform=AnyCPU /p:Configuration=Release CordovaApp.sln

Which throws following error:

MSB4226: The imported project "/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/Microsoft/VisualStudio/v15.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) - "/Library/Frameworks/Mono.framework/External/xbuild/" . These search paths are defined in "/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/MSBuild.dll.config". Confirm that the path in the declaration is correct, and that the file exists on disk in one of the search paths.

I followed the path and the files cordova is looking for are not existent, but I found nothing on how to install the Javascript Tools on Mac OS without re/installing Visual Studio.

I am not into cordova so excuse me if this question is not worth wasting your time, but if anybody could help me to get this last platform build succeeding with Jenkins I would really appreciate.

1 Answers
Related