Windows PowerShell中SDK和System.Management.Automation.PSObject [英] Windows Powershell SDK and System.Management.Automation.PSObject

查看:641
本文介绍了Windows PowerShell中SDK和System.Management.Automation.PSObject的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在,我在Visual Studio 2008在Windows服务器上编译C程序尖锐生成错误(2008年,我猜)SP 2的64位操作系统。
它说,'System.Management.Automation.PSObject在没有引用的程序集的定义。
我做了一些搜索在MSDN,我发现,这似乎是Windows电源外壳SDK的一部分。 http://msdn.microsoft.com/en-美国/库/ system.management.automation.psobject%28VS.85%29.aspx

I have a build error in a c sharp program that I am compiling in Visual Studio 2008 on a Windows Server (2008, I guess) SP 2 64-BIT OS. It says that 'System.Management.Automation.PSObject' is defined in an assembly that is not referenced. I did some searching in MSDN and I found that this seems to be part of the Windows Power Shell SDK. http://msdn.microsoft.com/en-us/library/system.management.automation.psobject%28VS.85%29.aspx

的问题是,我已经在Windows PowerShell。如果这是我需要的,我怎么使用它,或者在C夏普IDE引用它。如果我需要下载额外的东西(即SDK),我在哪里去做到这一点,并安装它?我不能在网上找到的任何东西。

The problem is that I already have the Windows Powershell. If this is all I need, how do I make use of it or reference it in the C Sharp IDE. If I need to download something extra (ie the SDK), where do I go to do this and install it? I could not find anything online.

推荐答案

查看 C:\Program Files\Reference大会\Microsoft\WindowsPowerShell\v1.0 为System.Management.Automation.dll,如果它存在,它添加在你的C#项目的引用。如果它不存在,然后下载 Windows SDK的,以将文件放在上述地点。

Look in C:\Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v1.0 for System.Management.Automation.dll and if it exists, add it as a reference in your C# project. If it doesn't exist, then download the Windows SDK which will put the file in the above location.

这篇关于Windows PowerShell中SDK和System.Management.Automation.PSObject的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆