Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi friends, i am trying to create the angular2 project in my system. while i am installing by using command prompt. i am getting some Error related to .net .the Error which is "
dot net' is not recognized as an internal or external command operable program or batch file
".


how to resolve this Error.

what i have tried i have given below ;

1. Open Command Prompt

2. I've installed node and npm

3. After this, I am trying to install (dotnet new --install Microsoft.AspNetCore.SpaTemplate::*) . i got some Error like"
dot net' is not recognized as an internal or external command operable program or batch file
"

What I have tried:

Please help me to start the angular2 application in my visual studio 2013....


thanks.
Posted
Updated 15-May-19 1:57am

Mostly it could be because, you haven't installed the dotnet core yet, which seems to be required prior to installing the asp.net core spa template. To check if you have installed the .net core in your machine or not, check if this exists
C:\Program Files\dotnet\sdk

or just type following in command prompt
dotnet --version

The above command should show you the version of .net core installed.

If still says, 'dotnet' is not recognized then you need to install it.
Follow the detailed steps from following official link to get it installed.
.NET and C# - Get Started in 10 Minutes[^]

If you find that dotnet core is already installed, please try to open Visual studio as Administrator and see if that helps.

Please let me know if nothing suggested works for you.

Hope, it helps :)
 
Share this answer
 
Comments
Member 11183217 8-Nov-17 6:55am    
hi Giri i tried this way but while i using this dontnet --version i have got some Error in popup window like "The Program can't start because api-ms-win-crt-runtime-[1-1-0.dll is missing in your computer. Try reinstalling the program to fix this problem]" .
Suvendu Shekhar Giri 8-Nov-17 7:24am    
Looks like your installation was not correctly finished.
Please check if following link helps-
The program can’t start because api-ms-win-crt-runtime-l1-1-0.dll is missing[^]
Try these three solution:-

1. first of all you have to install .net core SDK according to your windows version.
2. then after if its not working then try to re-run your application run as adminstrator
mode.
3. or install windows powershell according to your windows version and write command over
there.

The above solution will work.
 
Share this answer
 
Comments
CHill60 15-May-19 8:41am    
Your three solutions...
1. Already mentioned in Solution 1 from over a year ago
2. Already mentioned in Solution 1 from over a year ago
3. Replacing the scripting method won't help at all if dotnet core is not correctly installed.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900