我想在我的解决方案中构建一些应用程序,并且我想单独构建它们
运行: /Applications/Xamarin\Studio.app/Contents/MacOS/mdtool -v build "--configuration:Release|iPhone"./42.csproj
失败。
我确实看到所有 Xamarin 示例都使用带有 mdtool 的解决方案文件 (.sln),但我仍然想知道是否有一种方法可以仅在我的解决方案中的项目上进行引用。
最佳答案
你可以像这样运行它:
/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool -v build -c:"Release|iPhone" -p:"42"
运行此命令时,您需要确保位于解决方案文件夹中。上述命令中的 42 应引用您的 iOS 项目文件所在的子文件夹,而不是项目文件本身。
关于ios - 我可以仅从 csproj 构建 Xamarin iOS 而不使用解决方案命令行吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23855103/