[linker] Don't remove RuntimeCompatibilityAttribute from assembly

It's needed at runtime since it changes exception handling behavior.

The "link sdk" Linker_RuntimeWrappedException() test relies on it,
but this never showed up there since "link sdk" doesn't link the main assembly.
This commit is contained in:
Alexander Köplinger 2019-04-03 17:41:38 +02:00
Родитель b3ab9e5edc
Коммит 7c73d70b4f
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -386,7 +386,7 @@ namespace LinkSdk {
}
[Test]
// http://lists.ximian.com/pipermail/monotouch/2011-December/006976.html
// http://lists.dot.net/pipermail/monotouch/2011-December/006976.html
public void Linker_RuntimeWrappedException ()
{
try {

Просмотреть файл

@ -71,7 +71,7 @@ namespace MonoTouch.Tuner {
"System.Runtime.CompilerServices.DecimalConstantAttribute",
"System.Runtime.CompilerServices.DefaultDependencyAttribute",
//"System.Runtime.CompilerServices.ExtensionAttribute", used at runtime by LINQ, see bug #3028
"System.Runtime.CompilerServices.RuntimeCompatibilityAttribute",
//"System.Runtime.CompilerServices.RuntimeCompatibilityAttribute", used at runtime by runtime wrapped exception handling
"System.Runtime.CompilerServices.StringFreezingAttribute",
"System.Runtime.ConstrainedExecution.PrePrepareMethodAttribute",
"System.Runtime.ConstrainedExecution.ReliabilityContractAttribute",