今天我在Windows 7 x64上安裝了VS 2015。主要是測試新的.NET的核心功能和等,並測試我創造了新的C#「控制檯應用程序(包)」的解決方案,得到了這樣的信息:如何修復Visual Studio 2015中的DNX/DNVM?
DNX SDK版本「DNX-CLR-雙贏x86.1.0 .0-beta5'未能安裝。該解決方案將爲此會話使用DNX SDK版本'dnx-clr-win-x86.1.0.0-beta5'。
我無法編譯和調試項目。另外,當我在項目屬性中打開調試選項卡時,VS崩潰了。
DNVM輸出,當我打開的解決方案:
Invoke-Command : The term 'x86' is not recognized as the name of a cmdlet, func
tion, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:1451 ????:27
+ Invoke-Command <<<< ([ScriptBlock]::Create("dnvm-$cmd $cmdargs")
)
+ CategoryInfo : ObjectNotFound: (x86:String) [Invoke-Command], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Co
mmands.InvokeCommandCommand
Invoke-Command : The term 'x86' is not recognized as the name of a cmdlet, func
tion, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:1451 ????:27
+ Invoke-Command <<<< ([ScriptBlock]::Create("dnvm-$cmd $cmdargs")
)
+ CategoryInfo : ObjectNotFound: (x86:String) [Invoke-Command], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Co
mmands.InvokeCommandCommand
Invoke-Command : The term 'x86' is not recognized as the name of a cmdlet, func
tion, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
C:\Program Files\Microsoft DNX\Dnvm\dnvm.ps1:1451 ????:27
+ Invoke-Command <<<< ([ScriptBlock]::Create("dnvm-$cmd $cmdargs")
)
+ CategoryInfo : ObjectNotFound: (x86:String) [Invoke-Command], C
ommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Co
mmands.InvokeCommandCommand
任何想法如何解決呢?
此外,我以前分別安裝了VS 2015 Preview和DNX/DNVM。但我想,在VS 2015安裝之前,我完全刪除了它。這可能會影響當前的VS安裝嗎?
安裝PowerShell的3.0做的工作對我來說!謝謝! –
我安裝了Powershell 4(Windows 7操作系統),它也能正常工作。想圖我會跳過3. :) –
救命,謝謝你的提示! –