InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

版本迭代问题

Open kingleoric212 opened this issue 4 years ago • 3 comments

假设初始出包A,后期InjectFix添加了N个类,生成a.bytes 再后期如果需要出包B,并且需要a.bytes适用与B的话 有没有好的解决方案(需要A与B包共存可用)

这边尝试过出包B时 ILFixEditor.AutoInjectAssemblys里更换成套用A的DLL,但是Unity会报错

kingleoric212 avatar Apr 14 '21 11:04 kingleoric212

根据自己的版本加载不同的patch

chexiongsheng avatar Apr 15 '21 02:04 chexiongsheng

根据自己的版本加载不同的patch

嗯 可行但是维护成本会比相同DLL的高

kingleoric212 avatar Apr 15 '21 02:04 kingleoric212

根据自己的版本加载不同的patch

想问下为什么InjectFix的更改DLL不会报错 如果我用File.Copy或者AssemblyDefinition或者直接 用 旧版未Inject的 DLL inject过去 都会报: The Assembly UnityEditor is referenced by Assembly-CSharp ('Library/ScriptAssemblies/Assembly-CSharp.dll'). But the dll is not allowed to be included or could not be found. 望指点一下😷

kingleoric212 avatar Apr 15 '21 02:04 kingleoric212