Search Unity

Question Can't use Shader Graph with Protobuf - conflicting DLL references

Discussion in 'Editor & General Support' started by Slandercakes, Aug 31, 2021.

  1. Slandercakes

    Slandercakes

    Joined:
    Jul 30, 2015
    Posts:
    15
    I've been using the protobuf-net and protobuf-net.core packages in my Unity project but have recently encountered problems after trying to install the Shader Graph package.

    I'm including System.Buffers in my project (a DLL in the Plugins folder) as Protobuf has a dependency on it, but Shader Graph also includes a version of System.Buffers so I'm getting a "Multiple precompiled assemblies with the same name System.Buffers.dll included on the current platform" error (and the same for some others like System.Memory, System.Unsafe.CompilerServices etc.). I've tried deleting the DLL I put in the Plugins folder, but protobuf-net.Core requires System.Buffers version 4.0.2.0 and the version that Shader Graph includes is 4.0.3.0.

    I'm currently at a point where I have to choose between using Protobuf or Shader Graph in my project.

    Is there a way I can get around this? Can I somehow tell protobuf which DLL to reference?