在 Adob​​e Flash Builder 4 中使用 Flex 4.5 和 4.0 [英] Use Flex 4.5 and 4.0 in Adobe Flash Builder 4

查看:23
本文介绍了在 Adob​​e 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?

推荐答案

Flash Builder 支持多种 SDK;但每个项目只能使用一个 SDK.您有几个选择:

Flash Builder supports multiple SDKs; but you can only use a single SDK per project. You have a few options:

  1. 使用构建工具(例如 ANT)来创建构建.这可能是最优雅的,但可能需要最多的设置.
  2. 创建两个项目;每个 SDK 一个.将每个项目上的源目录指向同一个源.如果您需要进行特定于 SDK 的更改,这将导致长期问题.
  3. 当您需要使用不同版本重新编译时,请在项目上切换 SDK.这很容易做到;但是如果你经常这样做会很乏味.

对于 Flextras 组件,我为每个 SDK 保留了不同的代码分支.这是因为由于 SDK 的变化,我们经常需要不同版本的代码.例如,通过我们的 Spark AutoComplete 组件,Flex 4.5 被引入Flex 4 或 Flex 4.1 中不存在的错误.所以我们有一个 Flex 4 版本和一个 Flex 4.5 版本.

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.

在大多数传统应用程序开发中,我不认为支持具有相同代码库的多个 SDK 很重要.

In most traditional application development, I would not expect it was important to support multiple SDKs w/ the same code base.

这篇关于在 Adob​​e Flash Builder 4 中使用 Flex 4.5 和 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆