foundation-template-first-recovery

Use this file when a new app should stay close to the dotnet new winui scaffold, or when opaque MSB3073, XamlCompiler.exe, and startup failures make it unclear whether the problem is in app code, shared resources, or the surrounding project

What This Reference Is For

Use this file when a new app should stay close to the dotnet new winui scaffold, or when opaque MSB3073, XamlCompiler.exe, and startup failures make it unclear whether the problem is in app code, shared resources, or the surrounding project structure.

Prefer

Avoid

Template-First Recovery Loop

  1. Confirm the intended packaging model and launch path.
  2. If the current startup shape is unclear, scaffold a temporary comparison app with the same packaging choice. Example:
  1. Diff only the startup and shared-resource areas against that comparison scaffold:
  1. Revert the suspect area toward the template-generated shape until the app builds cleanly again.
  2. Build explicitly for a concrete architecture. Example:
  1. Launch using the correct packaged or unpackaged path and confirm objective startup signals.
  2. Reapply custom changes in small slices, building and running after each meaningful edit.

Common Recovery Checks

Exit Criteria