dvnm无法识别为内部或外部命令,可运行程序或批处理文件 [英] dvnm not a recognized as an internal or external command,operable program or batch file
问题描述
当您尝试在命令提示符中运行"dnvm列表"或任何"dnvm"命令时,出现错误
when you try to run "dnvm list" or any of "dnvm" commands in the command promt i get the error
"dvnm无法识别为内部或外部命令,可运行程序或批处理文件"
"dvnm not a recognized as an internal or external command,operable program or batch file"
我已经在Windows7电脑上安装了Visual Studio 2015.
I have already installed visual studio 2015 on my windows7 pc.
推荐答案
-
安装Powershell 4.0
http://social.technet. microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx
Install Powershell 4.0
http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx
在 命令提示符
Run the below command in command prompt
@powershell -NoProfile -ExecutionPolicy不受限制-命令& {$ Branch ='dev'; $ wc = New-Object System.Net.WebClient; $ wc.Proxy = [System.Net.WebRequest] :: DefaultWebProxy ; $ wc.Proxy.Credentials = [System.Net.CredentialCache] :: DefaultNetworkCredentials;调用表达式($ wc.DownloadString('或 powershell
or the below command in powershell
& {$ Branch ='dev'; $ wc =新对象 System.Net.WebClient; $ wc.Proxy = [System.Net.WebRequest] :: DefaultWebProxy; $ wc.Proxy.Credentials = [System.Net.CredentialCache] :: DefaultNetworkCredentials;调用表达式 ($ wc.DownloadString(' https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall .ps1 '))}
&{$Branch='dev';$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc.DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}
ref: asp.net/home github站点升级DNVM或在没有Visual Studio的情况下运行
- 在命令提示符下运行命令
dnvm列表
dnvm list
命令promt可能会询问您是否有任何东西并安装最新的 同意,安装成功.
The command promt may ask you that you dint have any and install the latest say yes and it installs successfully.
示例输出如下所示
C:\ Windows \ system32> dnvm列表
C:\Windows\system32>dnvm list
入门好像您没有安装任何运行时. 您要我们安装DNX来入门吗? [Y]是[N]否
Getting started It looks like you don't have any runtimes installed. Do you want us to install a DNX to get you started? [Y] Yes [N] No
[?]帮助(默认为"Y"): y
[?] Help (default is "Y"): y
确定最新版本下载 dnx-clr-win-x86.1.0.0-beta7来自 https://www.nuget.org/api/v2 安装到C:\ Users \ YourAdminUserName.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-beta7 将C:\ Users \ YourAdminUserName.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-beta7 \ bin添加到 工艺PA .....等等
Determining latest version Downloading dnx-clr-win-x86.1.0.0-beta7 from https://www.nuget.org/api/v2 Installing to C:\Users\YourAdminUserName.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7 Adding C:\Users\YourAdminUserName.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to process PA .....and so on
您已经准备好开始滚动了.
That it you are ready to roll..
这篇关于dvnm无法识别为内部或外部命令,可运行程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!