Skip to content

Fix CoreLib build when building libraries solutions - #40097

Merged
ViktorHofer merged 1 commit into
masterfrom
ViktorHofer-corelibp2psolution
Jul 29, 2020
Merged

Fix CoreLib build when building libraries solutions#40097
ViktorHofer merged 1 commit into
masterfrom
ViktorHofer-corelibp2psolution

Conversation

@ViktorHofer

Copy link
Copy Markdown
Member

If a project that is part of solution has a ProjectReference to CoreLib, the Platform property was set to AnyCPU and CoreLib was built with the wrong Platform/Platform_Target.

Fixes#40073

cc @alnikola

If a project that is part of solution has a ProjectReference to CoreLib, the Platform property was set to AnyCPU and CoreLib was built with the wrong Platform/Platform_Target.
@Dotnet-GitSync-BotDotnet-GitSync-Bot added the area-Infrastructure-coreclr Only use for closed issues label Jul 29, 2020

@ericstjericstj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems OK. Double check that we don't need to clear the SetPlatform metadata, can't remember if that is something used anywhere.

@ViktorHofer

Copy link
Copy Markdown
MemberAuthor

Yeah validated that. The output is now identical when building from a solution vs when building the corelib subset.

@jkotas

Copy link
Copy Markdown
Member

Would it make sense to print error in System.Private.CoreLib.csproj for AnyCPU Platform?

@jkotasjkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@ViktorHofer

Copy link
Copy Markdown
MemberAuthor

Yes will do that in a follow-up one.

@ViktorHofer
ViktorHofer merged commit 90f0c93 into masterJul 29, 2020
@safern
safern deleted the ViktorHofer-corelibp2psolution branch July 29, 2020 21:57

@safernsafern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
If a project that is part of solution has a ProjectReference to CoreLib, the Platform property was set to AnyCPU and CoreLib was built with the wrong Platform/Platform_Target.
@karelzkarelz added this to the 5.0.0 milestone Aug 18, 2020
@ghostghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclrOnly use for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Starting any URI test leads to a stack overflow in System.Private.CoreLib

6 participants

@ViktorHofer@jkotas@ericstj@safern@karelz@Dotnet-GitSync-Bot