Skip to content

Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.14.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies #434

@maettu-this

Description

@maettu-this

Similar issue as #378, but the other way around:

My host application contains analyzers of version 3.11.11.301, but I have not found a way to tell CS-Script this is OK. CSScript.CodeDomEvaluator.CompileAssemblyFromFile() keeps complaining about the 4.14.0.0 version.

Question 1: Is it possible to "downgrade"/"downbump" to version 3.11.11.301?
Question 2: Is it possible to tell CS-Script to compile without "Microsoft.CodeAnalysis"?
Question 3: What are the reasons for insisting on "Microsoft.CodeAnalysis", and even on a particular version?

Neither https://github.com/oleg-shilo/cs-script/wiki/Hosted-Script-Execution nor https://github.com/oleg-shilo/cs-script/wiki/CS%E2%80%90Script-Runtime-Environment contains any information about "CodeAnalysis". https://github.com/oleg-shilo/cs-script/wiki/Choosing-Compiler-Engine states "Microsoft.CodeAnalysis.CSharp.Scripting.dll" but only for Roslyn.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions