Building functions with Custom PS Classes

This topic contains 1 reply, has 1 voice, and was last updated by Profile photo of Monty Monty 2 weeks, 2 days ago.

  • Author
    Posts
  • #72445
    Profile photo of Monty
    Monty
    Participant

    I am having an issue where this error: would appear when I tried to load my custom Powershell Module that used a PowerShell class inside one of the functions. I enter the class manually from the function everything worked fine. Anybody out there have a different recommendation for avoiding this error? This only happens when trying to load the function via script. If done manually it works fine.

    PSverison : 5.1.14393.1198, OS

  • #72452
    Profile photo of Monty
    Monty
    Participant

    I figured it out. Functions loads fine when not in a one drive folder.

You must be logged in to reply to this topic.