title
Products            Buy            Support Forum            Professional            About            Codec Central
 
Results 1 to 2 of 2

Thread: Errors importing dMCScripting.dll into PowerShell script

  1. #1

    Join Date
    Dec 2023
    Posts
    1

    Errors importing dMCScripting.dll into PowerShell script

    I haven't been able to import the dMCScripting.dll into my script yet. I am getting this error:

    Code:
    Bad IL format. The format of the file '\bin\dMCScripting.dll' is invalid.
    I have tried these methods:
    Code:
    Add-Type
    Import Module
    [System.Reflection.Assembly]::LoadFrom("$packagesRoot\bin\dMCScripting.dll")
    I have tried PowerShell 5.1 and 7.2. I am sure it is ignorance that is causing the issue, but I can't seem to figure it out.

    Any help would be greatly appreciated,

    ~Q
    Last edited by quazl; 12-12-2023 at 11:30 AM.

  2. #2
    Administrator
    Join Date
    Apr 2002
    Posts
    43,831

    Re: Errors importing dMCScripting.dll into PowerShell script

    Try the example shell script file to see if working, bin is not a standard install folder.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •