MSBuild warning MSB8025

MSB8025: Using legacy manifest embedding because of manifest-option on Manifest Tool is set.

Several manifest options force the manifest tool to use legacy mode to embed the manifest. A value set for any of these manifest properties can cause the warning:

  • UpdateFileHashes
  • TypeLibraryFile
  • AssemblyIdentity
  • ComponentFileName
  • GenerateCatalogFiles
  • GenerateCategoryTags
  • ManifestFromManagedAssembly
  • RegistrarScriptFile
  • ReplacementsFile
  • SuppressDependencyElement

To resolve this issue, remove the named manifest property from the manifest generation options.