Cordova Build Windows 10 App on Mac OS X

Hi, I hope this question hasn't been answered anymore, but 4 hours spent researching is enough for today. My simple question is whether we can create a Windows10 application with the cord on the Mac OS the X (10.12). Why I want to do stuff like this, that I just created jenkins for some of our projects and we work with Xamarin, Cordava and native, I wanted to set up jenkins for each one to automate iOS, Android and Windows builds, Everything works so far but when I try to create a windows cordova app it fails with the following message:

cordova build windows --release
Error: spawn ENOTDIR

      

I looked at the logs and found out that at some point Cordova tries to find MsBuildToolsPath in the registry with:

reg query ...

      

which is not suitable for Mac OS. So I tried to build with msbuild directly:

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

      

Which is causing the 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 looking for "/VisualStudio/v15.0/JavaScript/Microsoft.VisualStudio.WJProject.Default.props Microsoft" in the fallback search path for $ (MSBuildExtensionsPath32) - "/Library/Frameworks/Mono.framework/External/xbuild/". This path lookup is defined in "/Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/msbuild/15.0/bin/MSBuild.dll.config". Make sure 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 that cordova is looking for don't exist, but I couldn't find anything on how to install Javascript Tools on Mac OS without reinstalling Visual Studio.

I am not cordova, so excuse me if this question is not worth wasting your time, but if anyone can help me get this latest platform to be successful with Jenkins, I would really appreciate it.

+3


source to share


1 answer


If you're talking about Windows 10 UWP apps, the answer is no . See also the question linked in the comments and documentation for Visual Studio 2017 for Mac platform here :

Visual Studio for Mac does not support Windows client projects such as Windows Forms, WPF, or UWP.




Possible solutions:

+2


source







All Articles