HUB
Sign inSign up

adanek/dotnet-mixin:1.0

Manifest digest

sha256:5ce7fa257cd4b7b26808a6e6ffb3817a4f44bb03ac4979d68d8e20bafd0cc2b3

Last pushed

3 days by adanek

Type

Sandbox Kit

Manifest digest

sha256:5ce7fa257cd4b7b26808a6e6ffb3817a4f44bb03ac4979d68d8e20bafd0cc2b3

yaml
schemaVersion: "3"
displayName: .NET SDK 8 + 10
description: The .NET 8 and .NET 10 SDKs (side by side, one dotnet host) with the ICU libraries they need, as an overlay for the Copilot workload. Grants egress to nuget.org, the .NET download CDN and the World-Direct Azure DevOps Server NuGet feed, with optional proxy-injected feed auth.
sourceUrl: https://github.com/dotnet/sdk
version: 1.0.1
licenses:
    - MIT
    - Unicode-3.0
kind: mixin
provides:
    - [email protected]
    - [email protected]
    - [email protected]
capabilities:
    - type: com.docker.sandbox/network-policy@1
      config:
        runtime:
            allow:
                - api.nuget.org:443
                - www.nuget.org:443
                - nuget.org:443
                - globalcdn.nuget.org:443
                - ads.world-direct.at:443
                - builds.dotnet.microsoft.com:443
                - dotnetcli.azureedge.net:443
                - ci.dot.net:443
                - aka.ms:443
    - type: com.docker.sandbox/credential@1
      optional: true
      config:
        apiKey:
            inject:
                - domain: ads.world-direct.at
                  format: Basic %s
                  header: Authorization
            name: ADS_NUGET_TOKEN
            proxyManaged: true
        phase: runtime
        service: ads-nuget
      description: Azure DevOps Server NuGet feed access (PAT, Basic auth)
    - type: com.docker.sandbox/agent-context@1
      optional: true
      config:
        content: |
            ## .NET SDKs

            `dotnet` is on PATH (`DOTNET_ROOT=/usr/share/dotnet`) with two SDKs side by side:

            - .NET 10 SDK — default; builds `net10.0` and every older target framework.
            - .NET 8 SDK — out of support (EOL); used only when a `global.json` pins `8.0.x`.

            Run `dotnet --list-sdks` / `dotnet --info` to see exact versions. Respect a
            repository's `global.json`; do not edit it just to make a build pass.
            Full ICU is installed, so culture-sensitive code behaves as on a desktop.
            Telemetry and the first-run banner are off.

            NuGet: package sources come from the repository's `NuGet.config`. Egress is
            allowed to nuget.org and to the Azure DevOps Server feed on
            `ads.world-direct.at`. Authentication to `ads.world-direct.at` is injected by
            the sandbox proxy — never add credentials with `dotnet nuget add source` or
            `update source`, never write passwords into a `NuGet.config`, and never print
            `ADS_NUGET_TOKEN` (it is a placeholder anyway). If a restore from that feed
            returns 401, tell the user to run `scripts/Set-AdsNugetSecret.ps1` from the
            dotnet-mixin repository on the host.
            A network refusal for any other host is the sandbox policy at work; report it
            rather than working around it.
args:
    sdk8Version:
        default: 8.0.428
        description: .NET 8 SDK release to install
        pattern: ^8\.0\.[0-9]+$
        buildArg: DOTNET_SDK_8_VERSION
    sdk10Version:
        default: 10.0.404
        description: .NET 10 SDK release to install
        pattern: ^10\.0\.[0-9]+$
        buildArg: DOTNET_SDK_10_VERSION
dockerfile: dotnet.dockerfile