C# dll in powershell

0

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

c#
powershell
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