Skip to content

Commit

Permalink
[msbuild] Fix missing localization in error (dotnet#10117)
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot authored Nov 20, 2020
1 parent fb437d7 commit d7bb2f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
using Xamarin.Localization.MSBuild;

namespace Xamarin.MacDev.Tasks
{
Expand Down Expand Up @@ -102,7 +103,7 @@ public override bool Execute ()

value = NativeReferences[i].GetMetadata ("Kind") ?? string.Empty;
if (!Enum.TryParse (value, out kind)) {
Log.LogError (null, null, null, NativeReferences[i].ItemSpec, 0, 0, 0, 0, "Unknown native reference type: {0}", value);
Log.LogError (null, null, null, NativeReferences[i].ItemSpec, 0, 0, 0, 0, MSBStrings.W0051, value);
continue;
}

Expand Down

0 comments on commit d7bb2f2

Please sign in to comment.