Dotnet Restore Command Not Found – Exploring The New DotNet CLI

Aspnetcore 1

It has been a year since I posted Taking Visual Studio Code and ASP.Net 5 For A Spin on which I tried to create a simple ASP.Net 5 web application using the then just released free Visual Studio Code. Microsoft also released in Beta that time the new .net framework based which called DNX which is now known as .Net Core. In this post, I will try again to create simple web application using the new .Net Core.

Trying from Yo

I will use Yeoman to help me with the scaffolding of a new web application.

 yo aspnet 

Yeoman

After yeoman generated a web application for me, a confirmation message is displayed that the new project is now created and I can do now a “dotnet restore”.

Dotnetrestore yeoman

Going to the new web application directory I issued a command “dotnet restore” but I got a command not found error. I updated my Visual Studio Code just hoping to get an updated version of the framework along with it but to no avail.

Hello “Dotnet” .Net Core 1.0

Microsoft released last June of .Net Core 1.0 and along with it the new Dotnet CLI.

The DotNet CLI is included if you install the .Net Core SDK Installer. There is also a separate installer for .Net Core only.

You can get the installers straight from Github https://github.com/dotnet/cli/ (for the latest builds) or from https://www.microsoft.com/net/core

See all the flavours from the table below I got from the .Net Core Github repo:

Cli flavours

Sidenote:
Some hiccups along the way of updating my openSSL and brew. Need to execute “xcode-select —install” command to update. This is somewhat related to the El Capitan macOS that I have on my mac.

Sidenote

After installing the .Net Core with SDK, “dotnet” command is now available. As of today here’s my “dotnet —info”

Noels-MacBook-Pro:~ noelarlante$ dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
 Version:            1.0.0-preview2-003121
 Commit SHA-1 hash:  1e9d529bc5

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.11
 OS Platform: Darwin
 RID:         osx.10.11-x64

Sidenote: “dotnet restore” still does not work. I’m getting an error related to this question posted on Stackoverflow . I’ll post an update once this has been resolved.

Sidenote2

Until next time!

Comments

  1. I think that means you either need to install, upgrade, or update symlinks for OpenSSL. (You might also wanna get a spam filter for comments. :))

  2. CaptainKappa says:

    How did you resolve the issue with “Command Not Found” ?

    • Noel Arlante says:

      Microsoft updated the instructions to:

      [bash]
      brew update
      brew install openssl
      ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
      ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/
      [/bash]

  3. great points altogether, you just received a emblem
    new reader. What mmay you recommend in regards to your submit that you just made a few days in thee
    past? Any sure?

    ncb smart (https://ncbbank-vn.com)
    national citizen bank

  4. Very good write-up. I certainly love this site.
    Thanks!

  5. Unblock says:

    Do you have any video of that? I’d like to find out some additional information.

  6. – financial credit / Coins

    After you bump the child maintenance that you deposited will become relation or coins in the online slot gambling.
    credit or coin is what you can future use to bet and usually explanation or
    coin can be found in the demean left corner of the robot or online slot screen.

    – Jackpot

    The biggest prize you can get in the same way as you win a slot is called
    the jackpot. Usually players can win the jackpot afterward betting maximum upon each
    round. suggestion on the number of winning jackpots
    can be seen in the paytable / payment table.

    – Pay table

    In every online gambling, you will locate pages or
    sections that describe what he can get in the slot game.

    in video slots usually on the screen, the payment table will put it on you
    how to trigger bonuses or how supplementary betting features show later than scatter or
    wild symbols.

    – later Jackpot

    Progressive jackpots lonely exist on a number of specific machines and are owned by one provider.
    The provider will pay the dealer or agent where the game
    is bodily marketed. A cutting edge jackpot will slowly growth next won by the player.

    That’s how many terms you have in slot games that you should know
    about, you can see in more detail in the opinion middle in the online slot games that you play.

Speak Your Mind

*