Guidelines for managing same asset for unity 5 and under

So unity 5 is out, YAY.

However I need to make an update to an asset on the asset store, and I opened it in 5 to upload for that, which is great. However now I cannot open it in unity 4 without the project imploding and scenes not opening.

So I want to support unity 4 and 5 so how am I meant to support them both when loading in unity 5 means I can no longer load in unity 4? I cannot see it being realistic to have 2 completely different repositories for each unity version, so there must be some logical way to handle this scenario in the same source control repository and not duplicating your core asset?

Don’t check in your library only your asset folders. Check out the repository to two different locations, or create a symbolic link ( I’m assuming this doesn’t cause issues if you do it on the assets folder ). Then you should be able to open the files in whatever version you want.

Use pre-compiler directives to distinguish code that should only be executed on one version or another.