简体   繁体   English

可以同时使用Visual Studio和Xamarin Studio构建Xamarin项目吗?

[英]Can a Xamarin project be built with both Visual Studio AND Xamarin Studio?

I know that you can use either of these tools for creating Xamarin projects, but can I also go between using the two of them? 我知道您可以使用这两个工具来创建Xamarin项目,但是我也可以在使用这两个工具之间进行过渡吗? Ex: I am on a Mac, and my co-workers is on Windows? 例如:我在Mac上,而我的同事在Windows上?

I used to believe it was possible, but the moment we added the Windows project, we can no longer build for iOS. 我曾经相信这是可能的,但是一旦我们添加了Windows项目,就无法再为iOS构建。

When we try to build, we receive an error about not being able to import target WIndows. 当我们尝试构建时,我们收到有关无法导入目标Windows的错误。

I understand this, as I'm on a Mac. 我在Mac上了解这一点。 Even if I exclude the UWP project from the build process, it still throws this error. 即使我 UWP项目从构建过程中排除 ,它仍然会引发此错误。

How do you write Xamarin projects on both a Mac and a Windows machine? 如何在Mac和Windows计算机上编写Xamarin项目?

Yes, you can. 是的你可以。 However, XS on a Mac cannot build Windows projects (although you should be able to exclude them from the build), and VS on the PC can only build iOS projects with the aid of a Mac to act as a build server. 但是,Mac上的XS无法构建Windows项目(尽管您应该能够将它们从构建中排除),而P​​C上的VS只能借助Mac来构建iOS项目以充当构建服务器。 Otherwise the solution files should be portable between the two environments. 否则,解决方案文件应在两个环境之间可移植。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM