agentleFS
MicrosoftKnown publishermicrosoft/dotnet-framework-docker/AGENTS.md

dotnet-framework-docker

AGENTS.md763 starsChanged 10 months agoMITView on GitHub

This repository contains the official Docker images for .NET Framework, published to Microsoft Container Registry (mcr.microsoft.com). Images build on each other: runtime → aspnet → wcf, with sdk building on runtime. Each variant supports multiple .NET Framework versions (4.8, 4.8.1) across Windows Server Core versions (ltsc2016, ltsc2019, ltsc2022, ltsc2025). To modify Dockerfiles or READMEs, edit the templates and regenerate: Templates use Cottle syntax with variables from manifest.versions.json: Tests are categorized by image type: runtime, sdk, aspnet, wcf, pre-build. Tests validate…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Update manifest.versions.json then regenerate Dockerfiles.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Coding Agent Instructions for dotnet-framework-docker

This repository contains the official Docker images for .NET Framework, published to Microsoft Container Registry (mcr.microsoft.com).

Build and Test Commands

# Build and test all images for a specific .NET version
./build-and-test.ps1 -Version 4.8

# Build only (no tests) for specific version and OS
./build-and-test.ps1 -Version 4.8 -OS windowsservercore-ltsc2019 -Mode Build

# Test only
./build-and-test.ps1 -Version 4.8 -Mode Test

# Build/test specific image variants: runtime, sdk, aspnet, wcf
./build-and-test.ps1 -Repos sdk -Version 4.8.1

# Run a single test by filter
./tests/run-tests.ps1 -TestCategories sdk
dotnet test tests/Microsoft.DotNet.Framework.Docker.Tests --filter "Category=sdk"

Architecture

Image Hierarchy

Images build on each other: runtime → aspnet → wcf, with sdk building on runtime. Each variant supports multiple .NET Framework versions (4.8, 4.8.1) across Windows Server Core versions (ltsc2016, ltsc2019, ltsc2022, ltsc2025).

Generated Files (Do Not Edit Directly)

  • Dockerfiles in src/: Generated from Cottle templates in eng/dockerfile-templates/
  • README files: Generated from templates in eng/readme-templates/

To modify Dockerfiles or READMEs, edit the templates and regenerate:

# Regenerate Dockerfiles
./eng/dockerfile-templates/Get-GeneratedDockerfiles.ps1

# Regenerate READMEs
./eng/readme-templates/Get-GeneratedReadmes.ps1

# Validate without regenerating
./eng/dockerfile-templates/Get-GeneratedDockerfiles.ps1 -Validate

Key Configuration Files

  • manifest.json: Defines all images, tags, and build configuration for the infrastructure
  • manifest.versions.json: Product versions (NuGet, Visual Studio, patches) referenced by Dockerfile templates
  • manifest.datestamps.json: Date-based tags for image versioning

Conventions

Dockerfile Template Variables

Templates use Cottle syntax with variables from manifest.versions.json:

  • VARIABLES[cat("kb|", OS_VERSION_NUMBER, "|", PRODUCT_VERSION)] - Windows KB patches
  • VARIABLES[cat(PRODUCT_VERSION, "|url")] - .NET Framework installer URLs
  • OS_VERSION_NUMBER, PRODUCT_VERSION - Context variables for the build

Test Categories

Tests are categorized by image type: runtime, sdk, aspnet, wcf, pre-build. Tests validate both static image state (environment variables) and runtime scenarios.

Updating Product Versions

Update manifest.versions.json then regenerate Dockerfiles. This is typically done by automation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.