-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Build FAILED after #106209 PR (Implement type name resolution for ILLink analyzer) #106321
Comments
I can also reproduce this in VS. |
Tagging subscribers to this area: @dotnet/area-infrastructure-libraries |
I can reproduce this as well. Uninstalling the global SDK helped in my case. |
same here, deleting my local dotnet installation helped. |
I haven't been able to reproduce this build failure locally. @ViktorHofer you suggested in #106209 (comment) that the reference to System.Reflection.Metadata might be too new - can you elaborate? I would have expected the analyzer reference to load these from nuget when building locally. |
@huoyaoyuan would you be able to share repro instructions that hit this in VS? |
After I removed the .Net 9 global SDK, the build was successful. |
Odd, that suggests to me that the build was picking up an older version of the global SDK, but shouldn't that be prevented by the version in global.json? More specific repro steps would be helpful. |
I'd guess you want |
Unfortunately, that version doesn't have TypeNameParseOptions (from .NET 9) that the change needs. I think you're right that it's due to some version mismatch with the MSBuild/SDK dependencies, or maybe it's not finding the dependency at all when running on full framework MSBuild. |
When I install the latest .Net 9.0.100-preview.6.24328.19 globally, then the build FAILS. |
@elinor-fung pointed me to #97021 (comment) which looks like it describes the problem here. I see binding redirects that redirect to the 8.0 version of System.Collections.Immutable, and per the linked comment it sounds like any references to a 9.0.0 version will cause problems until the binding redirects are updated. |
If it helps my repro of this:
|
Thanks, I was able to repro it with a global SDK install. I'll revert the change and probably wait for .NET 10 to make the fix. |
Just pulled the change in VS, and invoke "Rebuild" for CoreLib. It's now failing. |
The change has been reverted: #106343 |
After I installed the new .NET SDK 9.0.100-preview.7.24407.12 globally, the runtime build was successful. |
Description
After I installed the new .NET SDK 9.0.100-preview.7.24407.12 globally, the runtime build was successful.
Can not build runtime after #106209 PR (Implement type name resolution for ILLink analyzer)
With the next log:
Reproduction Steps
Expected behavior
Successful Build.
Actual behavior
Build FAILED
Regression?
Yes
Known Workarounds
Configuration
.NET 9.0.100-preview.6.24328.19 installed globally
Windows 10
x64
Other information
No response
The text was updated successfully, but these errors were encountered: