Using ASP.NET Core RC2 in Appveyor

Posted by Anuraj on Tuesday, June 7, 2016

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 :)


Similar Posts


Did you like this article? Share it with your friends

Facebook Twitter Google+ LinkedIn Reddit StumbleUpon



MVP
Subscribe
Archives


Copyright © 2017 - Anuraj P. 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. Hosted with ❤ by GitHub