在 Adobe Flash Builder 4 中使用 Flex 4.5 和 4.0
由于新的 Flex SDK 4.5 已成为稳定版本,我想要将我的应用程序升级到新的 SDK。但不会丢失 SDK 4.0 的编译,它们可以完美地工作。我使用 Flash Builder 4.0 来构建它们。 Flash Builder 中是否有一种方法可以有条件地使用 4.0 和 4.5 进行编译,并在单独的 bin-debug 文件夹中创建两个发行版本?
As the new Flex SDK 4.5 has become a stable release, I want to upgrade my apps to the new SDK. But without losing compilation with SDK 4.0 with which they are working perfectly well. I used Flash Builder 4.0 to build them. Is there a way in Flash Builder to conditionally compile with 4.0 and 4.5 and create two release versions in separate bin-debug folders?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Flash Builder支持多种SDK;但每个项目只能使用一个 SDK。您有几个选择:
对于 Flextras 组件,我为每个 SDK 保留不同的代码分支。这是因为由于SDK的变化,我们经常需要不同版本的代码。举个例子,通过我们的 Spark AutoComplete 组件,Flex 4.5 引入了Flex 4 或 Flex 4.1 中不存在的错误。所以我们有 Flex 4 版本和 Flex 4.5 版本。
在大多数传统应用程序开发中,我认为支持具有相同代码库的多个 SDK 并不重要。
Flash Builder supports multiple SDKs; but you can only use a single SDK per project. You have a few options:
For Flextras components, I keep a different branch of the code for each SDK. This is because due to SDK changes, we often need different versions of code. As one example, with our Spark AutoComplete component, Flex 4.5 introduced a bug that was not there in Flex 4 or Flex 4.1. So we have a Flex 4 version and a Flex 4.5 version.
In most traditional application development, I would not expect it was important to support multiple SDKs w/ the same code base.
简而言之,Flash Builder 无法同时针对多个 SDK 版本进行构建。但如果您打算不那么频繁地构建发行版本,则可以切换 SDK。
The short answer is Flash Builder hasn't possibility to build against multiply SDK versions simultaneously. But you can switch SDKs if you plan to build release versions not so often.