actions / runner-images

GitHub Actions runner images
MIT License
9.32k stars 2.89k forks source link

Add .NET 6 SDK #4424

Closed akyamada-ms closed 2 years ago

akyamada-ms commented 2 years ago

Tool name

.NET 6 SDK

Tool license

N/A

Add or update?

Desired version

N/A

Approximate size

No response

Brief description of tool

I’m support engineer in Japan. One of my customers is using Ubuntu latest OS image for Microsoft-hosted agents in Azure DevOps Services. Does not have .NET 6 installed in Ubuntu latest OS image, so he adds the following definition to Pipeline and installs it every time.

steps:

I think you already have a plan, but I would like to request to include .NET 6 in the OS image.

Also, I would appreciate it if you could let me know when the OS image will include .NET 6 and if there is any publicly available information about future plans.

URL for tool's homepage

https://github.com/dotnet/core/tree/main/release-notes/6.0

Provide a basic test case to validate the tool's functionality.

No response

Virtual environments affected

Can this tool be installed during the build?

steps:
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 6.0.100-rc.2.21505.57
installationPath: $(Agent.ToolsDirectory)/dotnet

Tool installation time in runtime

N/A

Are you willing to submit a PR?

No response

nikolai-frolov commented 2 years ago

Changes have been deployed to production environments.

AraHaan commented 2 years ago

I have a better idea for keeping the images up to date (for those who need .NET SDKs newer than those preinstalled): have the dotnet-install scripts be on the images globally and in the path where actions can invoke them (without having to bundle them in their repository). This would help people like me who bundle them in our repos and then have to worry about forgetting to update the scripts whenever the .NET Foundation updates them.