Cloud code C# module binding error - Unity Services - Unity Discussions
After replacing the bundled Microsoft.Extensions.Logging.Abstractions.dll (originally shipped as v8.0.0.0) with the correct v9.0.0.0 build inside Editor/.CloudCodeBindingsGenerator/, the original FileNotFoundException for that assembly is resolved. However, Generate Bindings immediately fails again with the exact same type of error, now for Microsoft.Extensions.DependencyInjection.Abstractions, also requested at Version=9.0.0.0 while the bundled copy is 8.0.0.0:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. Could not find the specified file.
at Common.CloudCodeModule..ctor(Assembly entryPointAssembly, IDisposable loadContext, ICloudRuntime runtime)
at SpecGenerator.ModuleSpecGenerator.GenerateOpenApiSpec(Assembly entryPointAssembly, String projectId)
at Unity.Services.CloudCodeBindingsGenerator.BindingsGenerator.LoadOpenApiDocument()
at Unity.Services.CloudCodeBindingsGenerator.BindingsGenerator.Generate()
at Unity.Services.CloudCodeBindingsGenerator.Program.<Main>(String[] args)
This confirms the issue isn’t limited to a single mismatched DLL — it’s systemic across the bundled Microsoft.Extensions.* dependencies in Editor/.CloudCodeBindingsGenerator/. The generator’s manifest consistently expects 9.0.0.0, but the shipped binaries are consistently 8.0.0.0, so fixing one assembly at a time just surfaces the next one in the dependency chain. This points to the entire bundled dependency set having been packaged from a stale (8.0.0) build while the generator itself was compiled against 9.0.0 references.
