How to use latest dotnet CLI?

bgrainger's Avatar

bgrainger

12 Apr, 2016 06:13 AM

I've successfully set up an Appveyor build that uses "dnvm" and "dnx", but I'd like to migrate to the new dotnet cli (http://dotnet.github.io/getting-started/). Is there an Appveyor image that comes provisioned with the build linked from that page (i.e., https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/1.0.0.001598/dotnet-win-x64.1.0.0.001598.exe) or, preferably, the latest build from GitHub (https://github.com/dotnet/cli => https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/dotnet-dev-win-x64.latest.exe)?

Someone created a Chocolatey package for "dotnetcli" a few months ago, but it appears to be out-of-date/abandoned: https://chocolatey.org/packages/dotnetcli. If that were maintained, I think I would be able to use "cinst dotnetcli" in my init script.

I tried to find example projects that used dotnet-cli, but was unsuccessful. I was also unsuccessful in attempting to create an appveyor.yml that would download and install the latest dotnet-dev installer.

Has anyone gotten this to work?

  1. Support Staff 1 Posted by Feodor Fitsner on 12 Apr, 2016 06:21 AM

    Feodor Fitsner's Avatar
  2. 2 Posted by bgrainger on 12 Apr, 2016 06:33 PM

    bgrainger's Avatar

    Thanks! That's exactly what I wanted.

  3. 3 Posted by bniemyjski on 17 May, 2016 02:03 AM

    bniemyjski's Avatar

    Looks like there is a sample here: https://github.com/enricosada/fsharp-dotnet-cli-samples/blob/master/appveyor.yml#L15-L20

    @Feodor, considering it's rc2 can we add these images to the default vs 2015 image? It would be a huge help to a lot of people

  4. Support Staff 4 Posted by Feodor Fitsner on 17 May, 2016 02:44 AM

    Feodor Fitsner's Avatar

    Could you please clarify what images/tools should be installed and what location? How is it different from DNX (or is it just a new name)? I'm just trying to catch up with all this recent stuff.

  5. 5 Posted by bniemyjski on 17 May, 2016 03:39 AM

    bniemyjski's Avatar

    It's just the new cli tooling that replaced dnvm. Rc2 was released today and the tooling Msi can be downloaded from http://dot.net

    Get Outlook for iOS

        _____________________________

  6. 6 Posted by bniemyjski on 17 May, 2016 03:40 AM

    bniemyjski's Avatar
  7. Support Staff 7 Posted by Feodor Fitsner on 17 May, 2016 04:03 AM

    Feodor Fitsner's Avatar

    I see. Basically, we should install ".NET Core SDK" with MSI from that page which includes runtime, command line tools and tooling for VS IDE, right?

  8. 8 Posted by bniemyjski on 17 May, 2016 12:26 PM

    bniemyjski's Avatar

    Yes, you are correct! There is a visual studio tooling installer too (not sure if you want to run that or not, but it may help people rdping in).

  9. 9 Posted by jeavon on 17 May, 2016 01:41 PM

    jeavon's Avatar

    I would also love to see RC2 included in a new or existing AppVeyor image

  10. Support Staff 10 Posted by Feodor Fitsner on 17 May, 2016 06:22 PM

    Feodor Fitsner's Avatar

    Got it. Will schedule deployment for this week.

  11. 11 Posted by bniemyjski on 17 May, 2016 07:25 PM

    bniemyjski's Avatar

    On Tue, May 17, 2016 at 1:22 PM, Feodor Fitsner <[email blocked]> wrote:

    From: Feodor Fitsner (Support staff)

    Got it. Will schedule deployment for this week.

    On Tue, May 17 at 06:41 AM PDT, jeavon wrote:

    I would also love to see RC2 included in a new or existing AppVeyor image


    Awesome! Thanks a ton! I think the sooner we can get it out there the better!
    Thanks
    -Blake Niemyjski
  12. 12 Posted by bniemyjski on 18 May, 2016 12:35 PM

    bniemyjski's Avatar

    Does anyone know if we also need the latest version of nuget? I've only come across one install script out of many that was installing the latest version,

  13. 13 Posted by bniemyjski on 18 May, 2016 12:38 PM

    bniemyjski's Avatar

    I'm getting reports on slack that we shouldn't have to update nuget.

  14. 14 Posted by bniemyjski on 18 May, 2016 12:41 PM

    bniemyjski's Avatar

    @Feodor any ideas if the image will be pushed out today or tomorrow? Just asking as it would be nice not to have to spend a few hours working on an install script.

  15. Support Staff 15 Posted by Feodor Fitsner on 18 May, 2016 04:37 PM

    Feodor Fitsner's Avatar

    Will deploy them tomorrow.

  16. Support Staff 16 Posted by Feodor Fitsner on 20 May, 2016 05:59 AM

    Feodor Fitsner's Avatar

    OK, it's been deployed.

  17. 17 Posted by michiel on 20 May, 2016 07:38 PM

    michiel's Avatar

    Thanks, works great and I already have some nice green build results.

  18. 18 Posted by michiel on 17 Nov, 2016 01:35 PM

    michiel's Avatar

    A new dotnet core cli was released yesterday for .net core 1.1. When will it be deployed to AppVeyor?

  19. 19 Posted by Ilya Finkelshte... on 18 Nov, 2016 04:03 AM

    Ilya Finkelshteyn's Avatar

    Hi Michiel,

    Please watch this issue, CLI should be deployed as part of it.

    Thanks!
    --ilya.

  20. 20 Posted by Szymon on 10 Jan, 2017 01:16 PM

    Szymon 's Avatar

    And what about the preview CLI( that is a msbuild based cli) ?

  21. 21 Posted by Ilya Finkelshte... on 12 Jan, 2017 03:03 AM

    Ilya Finkelshteyn's Avatar

    Can you please point to download URL (sorry for ignorance)?

    --ilya.

  22. 22 Posted by Szymon on 12 Jan, 2017 11:36 AM

    Szymon 's Avatar

    dotnet core preview can be obtained in two way. First by instalation of VS 2017 RC or it can be donloaded from a github page - https://github.com/dotnet/cli

  23. 23 Posted by Guido Bouman on 01 Jun, 2017 01:35 PM

    Guido Bouman's Avatar

    @ilya or @feodor Any update on the dotnet cli 2.0.0 availability? Our tests currently fail randomly, and the 2.0 cli should solve this. (Microsoft does not plan to backport the fix to 1.x)

  24. Support Staff 24 Posted by Feodor Fitsner on 01 Jun, 2017 04:08 PM

    Feodor Fitsner's Avatar

    We were going to provide .NET SDK 2.0 Preview as part of "VS 2017 Preview" image (which is not yet available). Is this what you are looking for?

  25. 25 Posted by Guido Bouman on 01 Jun, 2017 04:45 PM

    Guido Bouman's Avatar

    Thanks for the fast reply Feodor, that would be exactly what we're looking for.

  26. Support Staff 26 Posted by Feodor Fitsner on 01 Jun, 2017 04:53 PM

    Feodor Fitsner's Avatar

    OK, please subscribe to this issue then: https://github.com/appveyor/ci/issues/1549

  27. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac