2017-08-08 110 views
3

您好我希望这个问题不好回答其他地方上如此,但4小时花在研究上就足够了今天的Windows 10应用程序。 我的一个简单问题是,如果可以在Mac OS X(10.12)上构建Windows10 Appcordova。为什么我想做这样一种啄的是,我刚刚成立詹金斯我们的一些项目,我们正与Xamarin,Cordava和本地的人的工作,我想为他们每个人的配置詹金斯自动化的iOS,Android和Windows构建。一切正常,到目前为止,但是当我尝试建立窗口科尔多瓦的应用程序失败,出现以下消息:科尔多瓦建立在Mac OS X

cordova build windows --release 
Error: spawn ENOTDIR 

我看了日志,并在某些时候科尔多瓦承认正在试图寻找MsBuildToolsPath配准:

reg query ... 

这是可以接受的不适用于Mac OS。所以,我试图建立与的MSBuild直接:

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

会抛出以下错误:

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.

我跟着路径和文件科尔多瓦正在寻找不存在的,但我没有发现任何有关如何在Mac OS上安装Javascript工具而无需重新安装Visual Studio。

我不会进入科尔多瓦,所以如果这个问题不值得浪费你的时间,但如果有人可以帮助我得到这个最后的平台与詹金斯成功,我真的很感激。

+0

https://stackoverflow.com/questions/39243485/is-it-possible-to-build-uwp-app-in-mac – Phonolog

回答

2

如果你在谈论的Windows 10 UWP Apps中的答案是没有。看到问题的意见也与和Mac平台here上的Visual Studio 2017年的文档:

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


可能的解决方案:

+0

非常感谢您对这个信息,我明明没有在看到这个文档。 – David