Skip to content

Conversation

@brendanzagaeski
Copy link
Contributor

Context: 0342fe56
Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1009374/

Split up the different uses of XA3001 by giving each error condition its
own code. This makes it possible to gather telemetry for each condition
separately, and it also makes it easier for users to search for the
particular code they are seeing.

Move XA3001 and the other new error codes to the .resx file so that
they are localizable.

Remove the try-catch from CilStrip.RunTask() because after
d4c8f077, the AndroidTask base class now provides that
functionality.

…to .resx file

Context: [0342fe5][0]
Context: https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1009374/

Split up the different uses of XA3001 by giving each error condition its
own code.  This makes it possible to gather telemetry for each condition
separately, and it also makes it easier for users to search for the
particular code they are seeing.

Move XA3001 and the other new error codes to the `.resx` file so that
they are localizable.

Remove the `try-catch` from `CilStrip.RunTask()` because after
[d4c8f07][1], the `AndroidTask` base class now provides that
functionality.

[0]: dotnet@0342fe5
[1]: dotnet@d4c8f07
} catch (Exception e) {
Log.LogCodedError ("XA3001", "{0}", e);
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove this? What happens if we get an error which we are not expecting? This would then bubble up to MSBuild and give a horrible MSxxxx error. Should we keep a generic error here which asked users to report the issue ?

Copy link
Member

@jonathanpeppers jonathanpeppers Jan 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to Pobst, it should go through here now: https://github.com/xamarin/xamarin-android/blob/1bee4ad176863bdfc0de258542a2c3685fc60f2d/src/Xamarin.Android.Build.Tasks/Tasks/AndroidTask.cs#L16-L21

I think using the default "let it throw" behavior is better now as long as this subclasses AndroidTask.

@jonpryor jonpryor merged commit 1524e6e into dotnet:master Jan 27, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants