简体   繁体   English

让 Grasshopper 插件跨平台兼容?

[英]Make Grasshopper Plugins Cross Platform Compatible?

How do I make sure that the c# plugins I develop work on both mac and PC?如何确保我开发的 c# 插件可以在 Mac 和 PC 上运行?

  1. I assume that certain libraries might not work on both mac and PC.我假设某些库可能无法在 Mac 和 PC 上运行。 For example, when I use Microsoft'sSystem or System.IO , will these work on Mac?例如,当我使用 Microsoft 的SystemSystem.IO时,这些可以在 Mac 上运行吗? Maybe I just have to change what is packaged in the.gha file upon build.也许我只需要在构建时更改.gha 文件中打包的内容。
  2. I can only find documentation for the differences in the distribution for Mac and PC, or different IDE's for Mac and PC .我只能找到有关 Mac 和 PC 发行版差异的文档,或者 Mac 和PC的不同IDE 的文档。 I don't see anything about how to write the code differently.我没有看到有关如何以不同方式编写代码的任何信息。 However, it does appear that RhinoCommon is slightly different for Mac.但是, 对于 Mac,RhinoCommon 似乎略有不同。

As far as I can tell, I might have to develop the plugin on a Mac computer.据我所知,我可能需要在 Mac 电脑上开发插件。 There isn't that much information out there, and the most recent post I can find on the topic is from 2015.那里没有那么多信息,我能找到的关于该主题的最新帖子是 2015 年的。

There is this page describing the process for cross platform plug-in.有这个页面描述了跨平台插件的过程。

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

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