Open ptsoccer opened 6 years ago
This issue doesn't seem to have had any activity in a long time. We're working on prioritizing issues and resolving them as quickly as we can. To help us get through the list, we would appreciate an update from you to let us know if this is still affecting you on the latest version of Xamarin.Forms, since it's possible that we may have resolved this as part of another related or duplicate issue. If we don't see any new activity on this issue in the next 30 days, we'll evaluate whether this issue should be closed. Thank you!
I just tried with version 4.8.0.1269 and it's still an issue
@StephaneDelcroix FYI
Description
In a particular certain set of circumstances, the XamlCTask will error in a stack overflow in which the mono cecil library ping pongs between mscorlib and netstandard looking for System.Type.
The steps are pretty convoluted, my attached file is setup the way it needs to be. The environment needed for the exception to occur is:
With this setup, when XamlCTask executes it:
For this to not have happened, netstandard.dll should have been loaded from the netstandard.library nuget package. I believe this can be done by preferring to load the requested dlls in the ReferencePath property first, and if it doesn't find it there, look in the search directories in the XamlCAssemblyResolver class.
Steps to Reproduce
MSBuild.exe "<Path to XamarinStaticBinding.sln>" /p:OutputPath="<Path to solution folder>\Output" /restore /p:Configuration="Release" /p:Platform="Any CPU" /verbosity:minimal
Expected Behavior
Compile succeeds
Actual Behavior
MSBuild crashes with a StackOverflowException
Basic Information
Reproduction Link
XamarinStaticBinding.zip