[Feature Request]: Localize MSBuild messages with MSBuildInternalMessage task #10171
Labels
Area: Common Targets
Feature Request
Good First Issue
Self-contained issues good for first-time contributors.
needs-investigation
Priority:2
Work that is important, but not critical for the release
Summary
The recently added task allows to produce localized messages:
https://github.com/dotnet/msbuild/blob/79dff86b18613cfe3510b719ac28e8a8c3e7f96c/src/Tasks/MSBuildInternalMessage.cs
Please use it instead of targets
msbuild/src/Tasks/Microsoft.Common.CurrentVersion.targets
Line 883 in 79dff86
Background and Motivation
MsBuild produces unlocalized messages for some specific validation cases that happen in scope of target.
The example of the task usage: https://github.com/YuliiaKovalova/msbuild/blob/be21253d85f7766356880d376e26aaa69c34c4cd/src/Tasks/Microsoft.Common.CurrentVersion.targets#L862
Proposed Feature
Refactor the existing messages , produced by with hardcoded text.
Alternative Designs
No response
The text was updated successfully, but these errors were encountered: