version: 2
jobs:
  build:
    docker:
      - image: mono:5
    steps:
      - checkout
      - run:
          name: Get package list
          command: apt-get update
      - run:
          name: Install wget
          command: apt-get -y install wget
      - run:
          name: Download NuGet
          command: wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
      - run:
          name: NuGet restore
          command: mono nuget.exe restore SaveLockscreenImage.sln
      - run:
          name: Build with MSBuild
          command: msbuild /p:Configuration=Release /verbosity:minimal SaveLockscreenImage.sln
  #test:
#dependencies:
#  override:
#    - mono nuget.exe install xunit.runner.console
workflows:
  version: 2
  build_and_test:
    jobs:
      - build:
      #- build
      #- test:
      #    requires:
      #      - build
          filters:
            branches:
              only:
                - master
                - dev
version: 2
jobs:
  build:
    docker:
      - image: mono:5
    steps:
      - checkout
      - run:
          name: NuGet restore
          command: nuget restore SaveLockscreenImage.sln
      - run:
          name: Build with MSBuild
          command: msbuild /p:Configuration=Release /verbosity:minimal SaveLockscreenImage.sln
  #test:
#dependencies:
#  override:
#    - mono nuget.exe install xunit.runner.console
workflows:
  version: 2
  build_and_test:
    jobs:
      - build:
      #- build
      #- test:
      #    requires:
      #      - build
          filters:
            branches:
              only:
                - master
                - dev
Remove apt-get update and use built-in nuget
Remove apt-get update and use built-in nuget
