I'm running a dot net core 6 api project where i use the roslyn library Microsoft.CodeAnalysis to format some text to C# code. in local test everyting work perfectly, but when i publish on IIS, the function that uses the Microsoft.CodeAnalysis returns this error Could not load file or assembly 'System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
i use these librairies:
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Formatting;
all of them version 4.0.6 i follwed some online threads that suggested to downgrade the Microsoft.CodeAnalysis to 4.0.2 or 4.0.0, i did that and the problem persists. what i'm i missing. thanks :)