I want to do something to C # code executed from a script powershell. The question arose as to add a third-party library in the project?I am doing so
$path = @("C:\Users\name\Desktop\ch\packages\System.Data.SQLite.126.96.36.199") $cSharp = @"my C# code"@ Add-Type -TypeDefinition $cSharp -ReferencedAssemblies $path
But when i start having problems running the script error:
This assembly name or codebase invalid. (Exception from HRESULT: 0x80131047).
I want to add the concrete version of the library System.Data.SQLite.dll
User contributions licensed under CC BY-SA 3.0