-
Notifications
You must be signed in to change notification settings - Fork 286
Fix MonoAOT runs failing to compile #4008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MonoAOT runs failing to compile #4008
Conversation
…Test.Sdk' from Microbenchmark.csproj as it is already being imported by the test adapter.
Does this get rid of the warning? |
It did in local testing. Just kicked the test run and hopefully it will get rid of the warning there as well. (Both the warning and MonoAOT build failure go away). |
This package needs to be referenced directly in the project for the VSTest adapter to work, but if it is causing things to fail then it's ok to get this in while I find an alternative later. |
Still waiting for the runtime-perf test run to finish, but the sdk_scenarios 8.0 failures in the performance-ci pipeline are not related to this change. |
Testing runs succeeded. Will merge with approval 👍. |
It looks like this removal is the likely cause of a new error in wasm AOT runs:
I think we should still keep this change for now as WasmAOT is also broken by something else dotnet/runtime#98960, but I will make a tracking issue to get the Test.Sdk added back in somehow. |
With the Microsoft.NET.Test.Sdk now implicitly referenced based on this warning:
Some sort of dll interaction was casuing the issue: https://stackoverflow.com/questions/62447717/system-typeloadexception-vtable-setup-of-type-xamarin-forms-formsandroidplatf. Removing the package reference from the MicroBenchmarks.csproj file fixes the issue.
This should fix: dotnet/runtime#98967
Tested locally using benchmarks_local.py.
Test run: https://dev.azure.com/dnceng/internal/_build/results?buildId=2389129&view=results
Open to other suggestions for the exact change.