Windows PowerShell中SDK和System.Management.Automation.PSObject

编程入门 行业动态 更新时间:2024-10-28 20:30:06
本文介绍了Windows PowerShell中SDK和System.Management.Automation.PSObject的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在,我在Visual Studio 2008在Windows服务器上编译C程序尖锐生成错误(2008年,我猜)SP 2的64位操作系统。 它说,'System.Management.Automation.PSObject在没有引用的程序集的定义。 我做了一些搜索在MSDN,我发现,这似乎是Windows电源外壳SDK的一部分。 msdn.microsoft/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. msdn.microsoft/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

本文发布于:2023-11-08 22:25:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1570615.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SDK   PowerShell   Windows   System   PSObject

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!