开发者

visual studio 2010 system.management.automation assembly reference

开发者 https://www.devze.com 2022-12-11 11:09 出处:网络
Been having trouble with visual studio 2010 I\'ve added reference to the project and double checked the

Been having trouble with visual studio 2010

I've added reference to the project and double checked the when i type using System.Management.Automation; at the top of the file.

when I go to compile / build it ..

it sa开发者_StackOverflow社区ys that the infamous are you missing an assembly reference.

any ideas?


I have had all sorts of issues with System.Management.Automation over time. I recently hit it again and decided to find an alternative way to run PowerShell from .NET using a batch file. See this blog post for code samples: http://www.nootn.com.au/2013/01/run-powershell-from-net-program-without.html

This also mentions how to get System.Management.Automation working; I.e. install a windows SDK and hack the csproject file so it has:

<Reference Include="System.Management.Automation" />

I hope this helps solve your issue or work around it!

0

精彩评论

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