Skip to content

Conversation

@radekdoulik
Copy link
Member

  • so that they are rewritten with the resolved references

  • fixes bug #42788

    the issue in this bug looks like this:

    [mscorlib]System.MonoTODOAttribute is referenced from
    System.Core.dll.

    because ResolveFromAssemblyStep.ProcessLibrary sets the action to
    Copy, the System.Core.dll is only copied from original place and
    not saved with resolved references.

    the System.MonoTODOAttribute resolves to reference inside the
    Microsoft.CSharp.dll assembly (where it is kept, it is stripped
    from mscorlib) and thus the reflection fails at runtime, when tries
    to load System.Core.dll assembly

 - so that they are rewritten with the resolved references

 - fixes bug #42788

   the issue in this bug looks like this:

   [mscorlib]System.MonoTODOAttribute is referenced from
   System.Core.dll.

   because ResolveFromAssemblyStep.ProcessLibrary sets the action to
   Copy, the System.Core.dll is only copied from original place and
   not saved with resolved references.

   the System.MonoTODOAttribute resolves to reference inside the
   Microsoft.CSharp.dll assembly (where it is kept, it is stripped
   from mscorlib) and thus the reflection fails at runtime, when tries
   to load System.Core.dll assembly
@jonpryor jonpryor merged commit cb82efb into dotnet:master Jul 27, 2016
@marek-safar
Copy link
Contributor

Are you sure this is the case MonoTODOAttribute is internal and we try not to share it

@radekdoulik
Copy link
Member Author

the last part of commit description is actually wrong. the MonoTODO attribute is kept in Microsoft.CSharp.dll just because it had Copy action set as well.

after the fix the System.Core doesn't contain references to MonoTODO attribute anymore.

this issue is XA specific (XA removes the attribute deliberately while linking), so the mono linker should be OK

jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Aug 27, 2021
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1314263

Changes: dotnet/android-tools@efc9b67...9b658b2

  * dotnet/android-tools@9b658b2: Merge pull request dotnet#133 from xamarin/ndk-r23
  * dotnet/android-tools@ff73f92: [build] Use GitInfo to generate $(Version) (dotnet#131)
  * dotnet/android-tools@4c2e36c: [Xamarin.Android.Tools.AndroidSdk] Eclipse Adoptium support (dotnet#132)
  * dotnet/android-tools@eaec4e3: [Xamarin.Android.Tools.AndroidSdk] More Microsoft Dist JDK Support (dotnet#130)
  * dotnet/android-tools@f9c1b0d: [BaseTasks] improve Task settings in AsyncTaskExtensions (dotnet#129)
  * dotnet/android-tools@02f7ae7: [NDK] Properly detect 64-bit NDK
jonpryor added a commit that referenced this pull request Aug 27, 2021
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1314263

Changes: dotnet/android-tools@efc9b67...9b658b2

  * dotnet/android-tools@9b658b2: Merge pull request #133 from xamarin/ndk-r23
  * dotnet/android-tools@ff73f92: [build] Use GitInfo to generate $(Version) (#131)
  * dotnet/android-tools@4c2e36c: [Xamarin.Android.Tools.AndroidSdk] Eclipse Adoptium support (#132)
  * dotnet/android-tools@eaec4e3: [Xamarin.Android.Tools.AndroidSdk] More Microsoft Dist JDK Support (#130)
  * dotnet/android-tools@f9c1b0d: [BaseTasks] improve Task settings in AsyncTaskExtensions (#129)
  * dotnet/android-tools@02f7ae7: [NDK] Properly detect 64-bit NDK
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 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