Using ASP.NET Core RC2 in Appveyor

June 07, 2016 by Anuraj

C# ASP.NET ASP.NET Core Appveyor Continuous Integration

This post is about using ASP.NET Core RC2 in Appveyor for Continuous Integration. Recently Microsoft released RC2 version of ASP.NET Core. But for Windows OS, there is an installer exe available.(Unlike DNX there is not commandline / powershell install options.) In this post I am downloading the binaries and extracting to the location.

version: 1.0.{build}
install:
- cmd: >-
    curl -fsSL -o dotnet-dev-win-x64.latest.zip 'https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-dev-win-x64.latest.zip'
    
    endlocal
    
    7z x dotnet-dev-win-x64.latest.zip -aoa -oC:\projects\MyApp\

Now you can navigate to the C:\projects\MyApp location and run the “dotnet restore” command. Other option is using powershell, you can download the executable and install it using “/install /quiet /norestart” flags, if you’re installing, you can run the dotnet command from anywhere in the script, you don’t need to navigate to any specific location.

Here is the GitHub repository which using the binary approach to compile a simple dotnet core console application.

Happy Programming :)

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub