Embedding Powershell v2.0 in .NET app on Windows 8 RTM

后端 未结 5 872
情歌与酒
情歌与酒 2020-12-05 07:33

Im getting the following error when trying to run hosted powershell scripts before upgrading from Windows 7 I never got this error.

The following erro

5条回答
  •  误落风尘
    2020-12-05 08:10

    The solution is to do the following, rather than only adding a block for only System.Management.Automation as suggested by the posts I read, you need to add one for all referenced PS assemblies.

      
          
            
                
                
              
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
              
              
            
            
        
    

提交回复
热议问题