How to mark certain referrenced assets not to be built into bundle

I have a scripatable asset,which referrence to other asset.I make a UNITY_EDITOR to it and want it not to be built into this bundle(that asset has its own bundle) ,but fail.Does anyone know anything wrong for this matter or how to handle it?

MyAsset: ScriptableAsset
{
public int Index;
#if UNITY_EDITOR
public AnotherAsset AssetB; // Actually built into bundle,and has referrence in manifest
#endif
}

myAsset.bundle + assetB.bundle
myAsset.bundle.manifest:
dependency: assetB.bundle

I just want to make myAsset.bundle has no dependency.

You can load the object through resources instead of serialization. You would have to manually add the object to the assetbundle if you wanted it, but it wouldn’t be included if you didn’t specify to.

So,you mean that once serialized,this referrenced asset is obsolutely built into bundle or bundle dependency?