Unity.TransformSetterInterceptor icon indicating copy to clipboard operation
Unity.TransformSetterInterceptor copied to clipboard

Burst and Mono.Cecil conflicts

Open MarkHelsinki opened this issue 1 year ago • 1 comments

I'm using URP, which has Burst as a dependency, and it's causing several compile conflicts with Mono.Cecil, for types like MethodBody, Instruction, OpCodes, MethodReference, CustomAttribute, PropertyDefinition, TypeDefinition and ParameterDefinition etc.

As an example, here is a compile error: The type 'MethodBody' exists in both 'Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=1ca091877d12ca03' and 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

I've tried adding things like using MethodBody = Mono.Cecil.Cil.MethodBody; but it hasn't removed the compile errors.

MarkHelsinki avatar Jul 20 '22 09:07 MarkHelsinki

Looks like Unity.Burst is also using same assembly for Mono.Cecil and they clash.

You could try to remove .dll from this asset plugin folder and see of that works.

It's possible you'll get some errors still due to different .dll version. O'd try to create asmdef for the asset and reference Mono.Cecil from plugins folder explicitly.

Hope that helps

On Wed, 20 Jul 2022, 10:19 MarkHelsinki, @.***> wrote:

I'm using URP, which has Burst as a dependency, and it's causing several compile conflicts with Mono.Cecil, for types like MethodBody, Instruction, OpCodes, MethodReference, CustomAttribute, PropertyDefinition, TypeDefinition and ParameterDefinition etc.

As an example, here is a compile error: The type 'MethodBody' exists in both 'Mono.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=1ca091877d12ca03' and 'Unity.Burst.Cecil, Version=0.10.0.0, Culture=neutral, PublicKeyToken=fc15b93552389f74'

I've tried adding things like using MethodBody = Mono.Cecil.Cil.MethodBody; but it hasn't removed the compile errors.

— Reply to this email directly, view it on GitHub https://github.com/handzlikchris/Unity.TransformSetterInterceptor/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQM2MUHB3RV6QPTMMQBDKLVU7ADJANCNFSM54C4IFKA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

handzlikchris avatar Jul 20 '22 10:07 handzlikchris