PSProvider

PSProvider出来た!

とりあえず動くようになりました。ソースは id:ps1:20000101:1204560447、一緒に使う、書式指定ファイルはid:ps1:20000102:1204561784です。 現在読み込んでるAssemblyからリフレクションで型情報を全部持ってきて名前空間とクラスをディレクトリ、メソッド…

PowerShell Providerの作り方資料

ロードしているアセンブリの名前空間をディレクトリに見立てて、クラスや、クラスのメンバを表示できるPSProviderを作成しています。 参考にした資料をメモしておきます。 MSDN - How to Create a Windows PowerShell Provider ここに詳しい作り方が載ってい…

AppDomain.Format.ps1xml

参照:id:ps1:20080304 <Configuration> <SelectionSets> <SelectionSet> <Name>AppDomainTypes</Name> <Types> <TypeName>System.Reflection.RuntimeMethodInfo</TypeName> <TypeName>System.Reflection.RuntimeConstructorInfo</TypeName> <TypeName>System.Reflection.RuntimeProp…</typename></types></selectionset></selectionsets></configuration>

AppDomainSnapIn

参照:id:ps1:20080304 Imports System.Reflection Imports System.ComponentModel Imports System.Management.Automation Imports System.Management.Automation.Provider Imports System.Linq <RunInstaller(True)> _ Public Class AppDomainSnapIn : Inherits PSSnapIn Public </runinstaller(true)>…