开发者

How to place PowerShell help file in GAC

I'm developing a powershell snapin derived from PSSnapIn开发者_运维技巧.

If I manually copy my snapin.dll-help.xml file to the GAC get-help on my command works like expected.

So, is it possible to get InstallUtil to copy the xml file as well as the dll upon install?


If you can use PS V2, I would suggest creating a PowerShell V2 Module. This removes the need to use installutil. You can deploy with Xcopy if you want. You just need to create a module manifest. You can also include your help file in the directory of the module you create, and it will work. You still use the PSSnapin base class, but how you package it is different. This was one of the major improvements from V1 to V2. In PowerShell, run the command to get some info on modules.

PS> help about_module
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜