根据“版本管理器”文档(dnvm,参考:https ://github.com/aspnet/Home/wiki/Version-Manager ),我应该能够在使用命令时提供-g
or参数。-global
use
文档:
dnvm use <semver>|<alias>|none [-x86][-x64] [-svr50][-svrc50] [-p|-persistent] [-g|-global]
| add DNX bin to path of current command line
none remove DNX bin from path of current command line
-p|-persistent add DNX bin to PATH environment variables persistently
-g|-global combined with -p to change machine PATH instead of user PATH
然而,当我执行此操作时,我收到以下错误:
C:\Repos\X\AbsenceRequests\AbsenceRequests\AbsenceRequests.Data.EF>dnvm use 1.0.
0-rc1-update1 -p -g
Invoke-Command : A parameter cannot be found that matches parameter name 'g'.At
C:\Users\OSCHELPEY\.dnx\bin\dnvm.ps1:1905 char:9
+ Invoke-Command ([ScriptBlock]::Create("dnvm-$cmd $cmdargs"))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], Parameter
BindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Comm
ands.InvokeCommandCommand
我做错了什么,还是我误解了文档?