powershell - Import-Module stops working sporadically -


i have problem import-module -name "./myassembly.dll" stops working sporadically. if restart computer, seems work normal while, it's getting frustrating.

the reason importing same module (in different powershell sessions) because i'm writing cmdlet using c#, , start powershell instance part of debugging cmdlet.

the import-module command gives me no feedback whatsoever of whether or not loading succeeded.

ps c:\source\myproject> import-module -name "./myassembly.dll" ps c:\source\myproject> get-stuffz get-stuffz : term 'get-stuffz' not recognized name of cmdlet, function, script file, or ope rable program. check spelling of name, or if path included, verify path correct , try again . @ line:1 char:1 + get-stuffz + ~~~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (get-stuffz:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception 

any or suggestions welcome.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -