I've created a monotouch project in monodevelop, and if I open it with notepad(or whatever that is in OSX), I can see the msbuild file import 开发者_如何转开发tasks from Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" and Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"
Where are these files located in OSX? I'm trying to understand how the build process work in monodevelop to make it behave as I want. I probably do not need to modify those files, but I want to understand how those files are.
On Mac, assuming you're using the default Mono framework installer, and assuming the project has a ToolsVersion of 3.5, $(MSBuildToolsPath)
and $(MSBuildBinPath)
are both /Library/Frameworks/Mono.framework/Versions/Current/lib/mono/3.5
However, these don't actually apply to MonoTouch, for two reasons:
- MonoDevelop currently uses its internal build engine by default, not MSBuild/xbuild. The MSBuild engine can be enabled in MD preferences but is experimental, and only works for projects with supported targets.
- There are no MSBuild targets for MonoTouch projects yet. This is planned to be fixed as MD gradually migrates to full MSBuild support, but when it is, the imports will be changed to import MonoTouch-specific targets.
You can see the MonoDevelop side of the MonoTouch build code in the MD source repository.
精彩评论