- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6
Include Xamarin.iOS facade directories #47
Conversation
Fixes compilation against assemblies that have references to netstandard.dll, such as Xamarin.Forms.
| <ItemGroup> | ||
| <DesignTimeFacadeDirectoryRoots Include="$(FrameworkPathOverride)" /> | ||
| <DesignTimeFacadeDirectoryRoots Include="$(FrameworkPathOverride)Facades/" /> | ||
| <DesignTimeFacadeDirectories Include="$(FrameworkPathOverride)Facades/" /> | ||
| </ItemGroup> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do the same for Android and macOS, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very likely the answer is yes. I didn't test it though and it's almost midnight so it will have to wait till tomorrow... I have the test projects at hand, so it should be easy to verify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also update a project to reference Xamarin.Forms in here:
https://github.com/xamarin/Xamarin.Legacy.Sdk/tree/main/samples
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Android already seems to work correctly. macOS will need a similar fix as iOS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| Side-note: The Mac build is likely going to be fixed by this GitHub Actions image upgrade soon. Not sure if it's worth creating a workaround at this point. | 
| /azp run | 
| No pipelines are associated with this pull request. | 
| Let me revisit the CI setup on this repo, currently failing on a workload step:  | 
| Is there a way we can avoid this one on CI? Can we build for simulator instead? Seems like that would be ok. | 
| /azp run | 
| No pipelines are associated with this pull request. | 
| AzDO is apparently refusing to build a PR from a fork... | 
| 
 Yep. Simulator would be ok. I will change it when I get back home. | 
| 
 Done. | 
| I triggered a manual AzDO run, then we can merge. Thanks! https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=7214530&view=results (sorry private link) | 
| I shipped an update if you want to try it out, thanks: https://www.nuget.org/packages/Xamarin.Legacy.Sdk/0.2.0-alpha3 | 
| 
 Thanks, already on it. | 
Fixes compilation against assemblies that have references to netstandard.dll, such as Xamarin.Forms.
The scenario is as simple as having a Xamarin.Forms app and adding this to a .cs file in the iOS project:
Since the Xamarin.Forms.Core.dll is compiled with "System.Attribute" referencing "[netstandard]System.Attribute" this relies on the
ImplicitlyExpandDesignTimeFacadesbuild step doing the necessary expansions for the final compilation. This was previously not working and resulted in an error: