Accessing .NET components from Powershell

后端 未结 3 1688
情深已故
情深已故 2020-12-09 18:51

I want to use Powershell to write some utilities, leveraging our own .NET components to handle the actual work. This is in place of writing a small console app to tie the c

3条回答
  •  旧巷少年郎
    2020-12-09 19:21

    The link that Steven posted is a good example. I don't know of any extensive tutorial. Both the Windows Powershell Cookbook and Windows Powershell In Action have good chapters on the subject. Also, look at the ::LoadFromFile method of the System.Reflection.Assembly class in case your in-house assemblies are not loaded in the GAC.

提交回复
热议问题