Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

DNVM is not recognized at a cmdlet or command

$
0
0

Hello everyone,

Please help to check my problem and show me how to overcome it. Thanks everyone so much.

I just install visual studio 2015 with update 3, then I install some package such as: ASP.NET core 2.0, 2.2 but i can run the command: dnvm.

Please help me to solve it

I tried some methods below but cannot solve:

https://www.webstackgeek.com/2015/11/01/asp-net-5-using-dnvm-net-version-manager/ :==> this topic tells me run the power-shell command: @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

the error on the screen:

PS C:\Users\admin> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.w
ebclient).DownloadString('ht
>> tps://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
At line:1 char:13
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Bra ...
+ ~~~~~~~~~~
Unexpected token '-NoProfile' in expression or statement.
At line:1 char:24
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Bra ...
+ ~~~~~~~~~~~~~~~~
Unexpected token '-ExecutionPolicy' in expression or statement.
At line:1 char:1
+ @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Bra ...
+ ~~~~~~~~~~~
The splatting operator '@' cannot be used to reference variables in an expression. '@powershell' can be used only as
an argument to a command. To reference variables in an expression use '$powershell'.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>