Powershell $Branch未被识别为内部或外部命令

Powershell $Branch未被识别为内部或外部命令,powershell,branch,dnx,terminator,Powershell,Branch,Dnx,Terminator,我正在尝试使用本教程()安装DVNM 我用Win10在另一个笔记本上实现了这一点,我在这里嵌入了8.1,第一个脚本get me错误: The string is missing the terminator: ". + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx ception + FullyQualifiedErrorId : TerminatorExpectedAtEn

我正在尝试使用本教程()安装DVNM

我用Win10在另一个笔记本上实现了这一点,我在这里嵌入了8.1,第一个脚本get me错误:

The string is missing the terminator: ".
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordEx
   ception
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString

'{$Branch' is not recognized as an internal or external command,
operable program or batch file.

有人能解决我的问题吗?无论我在哪里搜索都没有解决方案,我现在正在堆栈中…

我解决了我的问题,但我会将此线程保留在堆栈中。Cmd太差劲了,我确实是通过powershell安装的,只是使用command来解析:

&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

我解决了我的问题,但我将把这个线程留在堆栈上。Cmd太差劲了,我确实是通过powershell安装的,只是使用command来解析:

&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}

这不是有点旧了吗?如果我没记错的话,他们确实做了一些更改DNX和DNVM已经被新的.NET CLI取代了。请看:这不是有点旧了吗?如果我没记错的话,他们确实做了一些更改DNX和DNVM已经被新的.NET CLI取代了。见: