我在,我在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
发布评论