How do I build using Mono under the Ubuntu image? (SOLVED)

Ricky C's Avatar

Ricky C

08 Apr, 2018 10:37 PM

By default it uses .NET Core - which I think is great - but my project's not yet migrated down that road.

Instead I'd like the Visual Studio 2017 job to build like normal using the full .NET Framework, and the Ubuntu job to build using Mono with msbuild.

For reference, I currently manually build using VS2017 under Win10, and using MonoDevelop 7.3.3 with Mono 5.4.1 on Ubuntu 16.04.

Here's my project: https://ci.appveyor.com/project/kf6kjg/whip-lru

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Apr, 2018 01:37 AM

    Feodor Fitsner's Avatar

    For now, "MSBuild" mode for Ubuntu assumes .NET Core solutions/projects.

    However, you can override this default behavior for Ubuntu image as in this article: https://www.appveyor.com/docs/build-configuration/#specializing-mat...

    For example:

    ...
    build:
      project: WHIP_LRU.sln
      parallel: true
      verbosity: minimal
      publish_nuget: false
      publish_nuget_symbols: false
    
    for:
    -
      matrix:
        only:
          - image: Ubuntu
    
      build_script:
      - msbuild WHIP_LRU.sln
    
    ...
    
  2. 2 Posted by Ricky C on 09 Apr, 2018 02:09 AM

    Ricky C's Avatar

    And that worked beautifully! Thank you.

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:28 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