一直有麻煩2010視覺工作室2010與Visual Studio system.management.automation組件參考
我已經添加參考項目和雙重檢查的 當i型使用System.Management.Automation; 位於文件的頂部。
當我去編譯/構建它..
它說臭名昭着的你是否遺漏了程序集引用。
有什麼想法?
一直有麻煩2010視覺工作室2010與Visual Studio system.management.automation組件參考
我已經添加參考項目和雙重檢查的 當i型使用System.Management.Automation; 位於文件的頂部。
當我去編譯/構建它..
它說臭名昭着的你是否遺漏了程序集引用。
有什麼想法?
隨着時間的推移,我有System.Management.Automation各種問題。我最近再次找到它,並決定找到一種使用批處理文件從.NET運行PowerShell的替代方法。看到這個博客文章的代碼示例: http://www.nootn.com.au/2013/01/run-powershell-from-net-program-without.html
這也提到如何獲得System.Management.Automation工作;即安裝Windows SDK和破解csproject文件,因此它具有:
<Reference Include="System.Management.Automation" />
我希望這有助於解決您的問題或解決它!
感謝您的輸入,這是爲了一個先前的職位,所以現在與我無關,但如果它幫助別人..很棒! :) – Aceth 2013-01-14 15:35:37
我不能repro這個。我已經從Program Files \ Reference Assemblies \ WindowsPowerShell \ v1.0目錄中添加了對Sys.Mngmnt.Automation的引用,它構建了一個小測試應用程序,它在VS2010 Beta 2上編譯並運行良好。 – 2009-11-13 15:15:11
您可以發佈.csproj文件爲項目? – Itay 2009-11-13 23:20:42
是啊... [SCRNetworkFailure.csproj](http://cs-sol.swan.ac.uk/~cs440361/SCRNetworkFailure.csproj.txt) 啊我只有beta 1生病嘗試更新和讓你知道 – Aceth 2009-11-18 10:17:32