# Configuration migration guide

Generate a Markdown upgrade guide with an old-to-new mapping, complete JSON examples and verification steps. Includes Markdown and PDF downloads.

Markdown · C# walkthrough

Give users a concrete path through a configuration change, including how to check the result before replacing a working job.

[Build this report](#example-code)[Download MD](/downloads/showcase/workflows/markdown-migration-guide/example.md) [Try this file in your browser](/browser/markdown-to-html/)

Opens the generated download in a local browser tool. The C# example below creates the document.

**Start with**

An illustrative configuration change and its migration rules

**Generate**

MD + PDF

[!\[Generated Markdown example: Configuration migration guide\](/downloads/showcase/workflows/markdown-migration-guide/preview.webp)](/downloads/showcase/workflows/markdown-migration-guide/preview.png)

Page 1 · Generated by the example below

## How it works

1. ### Map the contract
  
  Use a table to connect old fields, new fields and their meaning.
2. ### Show complete examples
  
  Put the before and after configurations in JSON code fences that readers can copy.
3. ### Define verification
  
  Include small-input comparison, repeat-run behavior and a clear point at which the old configuration can be retired.

## The C# source

The example below shows the document API and layout used for this report. Follow the Markdown guide for package setup in your own project.

```csharp
using OfficeIMO.Markdown;

namespace OfficeIMO.Examples.Showcase.Workflows;

/// <summary>Produces a portable migration guide with explicit old-to-new mappings and a verification sequence.</summary>
internal static class MigrationGuide {
    internal static void Create(string folder) {
        var document = MarkdownDocument.Create()
            .H1("Configuration migration guide")
            .P("Move an illustrative report job from separate output settings to a named delivery block.")
            .P("Before you start, back up the configuration and use a temporary output folder for the first run.")
            .H2("Map the settings")
            .Table(table => table.Headers("Version 1", "Version 2", "Meaning")
                .Row("outputPath", "delivery.folder", "Destination for generated files")
                .Row("filePrefix", "delivery.prefix", "Prefix applied to each report")
                .Row("overwrite", "delivery.conflict", "Use replace or fail explicitly"))
            .H2("Before")
            .Code("json", "{\n  \"outputPath\": \"./reports\",\n  \"filePrefix\": \"weekly-\",\n  \"overwrite\": false\n}")
            .H2("After")
            .Code("json", "{\n  \"delivery\": {\n    \"folder\": \"./reports\",\n    \"prefix\": \"weekly-\",\n    \"conflict\": \"fail\"\n  }\n}")
            .H2("Verify the migration")
            .Ul(list => list.Item("Run once with a small known input.")
                .Item("Compare filenames, row counts and totals with the previous job.")
                .Item("Repeat the run to confirm the chosen conflict behavior.")
                .Item("Keep the original configuration until the scheduled run succeeds."));
        File.WriteAllText(Path.Combine(folder, "example.md"), document.ToMarkdown());
    }
}
```

[Open the C# source file](/downloads/showcase/workflows/markdown-migration-guide/MigrationGuide.cs.txt)

## API used in this example

- [`MarkdownDocument`](/api/markdown/officeimo-markdown-markdowndocument/)

## Use this in your project

Replace the fictional configuration contract with your actual migration. Exercise the examples against the application that owns the schema.

The [Markdown guide](/docs/markdown/) explains package setup and related document APIs.

## Documents and scope

### What the preview shows

The linked C# example generates this file. The Markdown source is reloaded and exported to PDF. Each PDF page is rendered for review.

### What to keep in mind

The settings are a fictional application example, not OfficeIMO configuration. The PDF is a readable review copy of the Markdown.

[Markdown API reference](/api/markdown/) · [Artifact hashes and provenance](/downloads/showcase/manifest.json)

## Continue with another example

- [Markdown**An API handover guide**](/showcase/markdown-api-handover/)
- [Markdown**Data dictionary from a field catalog**](/showcase/markdown-data-dictionary/)

<!-- PowerForge markdown artifact sha256:F39D311E7D2639ACB9CDBF7EED561EBB0777F56DE23502254117B41E3A8B0F7C -->
