Can't locate and add the System.Management.Automation into my project

Eekhay 101 Reputation points
2024-05-15T21:39:24.4633333+00:00

Dear All,

I trying to search and add the System.Management.Automation and System.Management.Automation.RunSpace that available in VS 2019 and using NuGet as well. Unfortunately, no luck.

How to add this reference to my VB.Net 2019 (.NET Framework 4.7.2) project?

Thank you.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,737 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 32,376 Reputation points Microsoft Vendor
    2024-05-16T01:28:30.82+00:00

    Hi @Eekhay ,

    New versions of System.Management.Automation is for .NET, not .NET Framework.

    If your project requires .NET Framework, consider using Microsoft.PowerShell.5.ReferenceAssemblies.

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.