C# dll in powershell


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.")
$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

asked on Stack Overflow Jul 23, 2015 by MIkeVazovsky • edited Jul 23, 2015 by Oxoron

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0