Skip to content

Analyzer: prefer explicit culture for EmbeddedResource #9154

@rainersigwald

Description

@rainersigwald

If you don't specify WithCulture=false or Culture={culture identifier} as metadata on an EmbeddedResource, the AssignCulture task will attempt to determine from the filename whether a file is neutral or belongs to a specific culture. But that can vary by what culture identifiers are known to .NET/the OS on the builder. It's more robust to explicitly specify.

related: https://github.com/MicrosoftDocs/visualstudio-docs/issues/9559

Metadata

Metadata

Assignees

Labels

Area: Task: GenerateResourceProblems with the task itself, resgen.exe, and resx resources in general.Feature: Warning WavesWarnings to enable in opt-in waves. Formerly "strict mode".Priority:2Work that is important, but not critical for the releasebacklogtriaged

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions