xamarin-macios/tools/mmp
Sebastien Pouliot 2be35fb1c8
[mtouch][mmp] Share error.cs and make it safer against FormatException (#8047)
* [mtouch][mmp] Share error.cs and make it safer against FormatException

Beside the obvious code sharing [1] this makes the error reporting code
safer against `FormatException`.

Even with code review this happened a few times in the past - we get
a string that can't format correctly in some error handling code. This
means the `FormatException` must be fixed before we can see the
underlying root issue (delaying bug fixes and support).

Recent changes made for localization makes it harder to review the
original strings (and even harder for translated strings) for
correctness. This means we can end up with something like

```
String.Format ("{0} {1}", "foo");
``

and easily miss it (since they split between different files) if there
are several changes inside a PR.

Finally sprinkle some unit tests :)

[1] we should move everything to use `ProductException` but that will be
for another PR...
2020-03-06 09:34:16 -05:00
..
linker/MonoMac.Tuner [mmp] Remove support for 32-bit apps. Partial fix for #6300. (#6642) 2019-07-24 09:01:14 -07:00
tests Rename bmac-mobile-mono to mono-sgen. (#7966) 2020-02-25 06:51:12 +01:00
.gitignore [mmp] Build using csproj instead of manual csc command. Partial fix for #4384. 2018-08-23 17:33:57 +02:00
Application.cs [mmp] Remove support for 32-bit apps. Partial fix for #6300. (#6642) 2019-07-24 09:01:14 -07:00
Assembly.cs [Localization] mtouch/mmp C# (#7710) 2020-01-31 15:02:52 -05:00
Info-framework.plist.tmpl [mmp] Add support for creating an Info.plist when building a framework for the embeddinator. 2017-05-09 08:12:39 +02:00
Info.plist.tmpl Build mmp. 2016-04-24 14:47:26 -04:00
Makefile [mmp] Use relative path in mmp script. (#7909) 2020-02-25 06:57:15 +01:00
Target.mmp.cs [mtouch/mmp] Make the mono native mode a Target-specific variable. (#6037) 2019-05-10 15:40:17 +02:00
Tuning.cs [mtouch][mmp] Share TimeStampStep code in the linker pipelines (#7955) 2020-02-24 12:03:44 -05:00
aot.cs Rename bmac-mobile-mono to mono-sgen. (#7966) 2020-02-25 06:51:12 +01:00
config Add System.Net.Security.Native dllmap to mmp 2019-01-10 22:14:58 +01:00
config_mobile Add System.Net.Security.Native dllmap to mmp 2019-01-10 22:14:58 +01:00
driver.cs [mmp] Set 'disable_omit_fp' by default to provide better native stack traces in certain cases. (#7981) 2020-02-26 15:49:55 +01:00
machine.4_5.config Bump to mono/2018-04 (#3856) 2018-06-27 10:59:59 -04:00
mmp [mmp] Use relative path in mmp script. (#7909) 2020-02-25 06:57:15 +01:00
mmp.csproj [mtouch][mmp] Share error.cs and make it safer against FormatException (#8047) 2020-03-06 09:34:16 -05:00
packages.config [Localization] mtouch/mmp C# (#7710) 2020-01-31 15:02:52 -05:00
resolver.cs [MMP] Allow to compile assemblies that do have a comma. (#7675) 2020-01-02 21:56:39 -05:00