.Net 8 build server image support for MacOS and Ubuntu

andrew.morrison's Avatar

andrew.morrison

13 Dec, 2023 09:47 AM

Hi there,

I’ve got a build that targets the following server images.

  • macOS
  • Visual Studio 2022
  • Ubuntu

I’ve been looking to add a .Net 8 platform target to my project.

I see the VS 2022 (Windows) image has been updated to accommodate this.

Ubuntu and MacOS fail currently though. I think MacOS is building via VS for Mac which I don’t think has a roadmap for .Net 8 and is being retired next year.

Is there a plan to get the .Net 8 SDK available on these additional OS’s and more broadly a plan to transition away from VS for Mac?

  1. 1 Posted by Jason C Daniels on 20 Feb, 2024 11:05 PM

    Jason C Daniels's Avatar

    I also need .Net 8.0 support in the Ubuntu build image. (Or a script I can run to install it)

  2. 2 Posted by andrew.morrison on 21 Feb, 2024 05:45 PM

    andrew.morrison's Avatar

    Hi Jason,

    I got some advice from AppVeyor via a different channel in the end. At that point, the recommended workaround for Ubuntu was the following:

    Add the following to the init step so it looks something like:

    init: - sh: >- sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0

    For the build server image use at least Ubuntu2004.

    This worked for me.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

 

20 Aug, 2024 09:07 PM
15 Aug, 2024 09:17 AM
10 Aug, 2024 02:42 PM
09 Aug, 2024 10:48 PM
06 Aug, 2024 08:03 PM
01 Aug, 2024 04:26 PM