How can i build a visual studio solution using xbuild (from Mono)?

给你一囗甜甜゛ 提交于 2019-11-28 08:01:23

问题


I recently downloaded Mono 2 for my new MacBook. I'm trying to figure out how to compile Visual Studio solutions with xbuild, which is included in Mono. Any ideas?


回答1:


Update: xbuild supports solution files now. see xbuild




回答2:


The last time I checked, solutions weren't supported by xbuild (they use a different file format), but *.*proj files are.

If you have a relatively simple solution, you may be able to get away with using xbuild on each project separately, but if your solution is very complex (with interdependencies between projects, etc.), you'll probably have to do a bit of hacking to make everything work.

Furthermore, it's worth noting the C++ projects in Visual Studio don't use msbuild, either (although Visual Studio 2010 is supposed to fix this), so if you need to compile any C++, you're totally on your own (of course, Mono doesn't have a C++/CLI compiler, so you wouldn't get very far with xbuild, anyway).

This question/answer suggests that you may wish to use mdtool, instead.



来源:https://stackoverflow.com/questions/254722/how-can-i-build-a-visual-studio-solution-using-xbuild-from-mono

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!