Skip to content

only include entry points defined in source#59836

Merged
jmarolf merged 2 commits intodotnet:mainfrom
jmarolf:bugfix/vb-winforms-entry-point-netcore
Mar 15, 2022
Merged

only include entry points defined in source#59836
jmarolf merged 2 commits intodotnet:mainfrom
jmarolf:bugfix/vb-winforms-entry-point-netcore

Conversation

@jmarolf
Copy link
Copy Markdown
Contributor

@jmarolf jmarolf commented Mar 1, 2022

Fixes #59696

In winforms apps on .NET Core we are given a global namespace that contains symbols defined as metadata. This never happened on .NET Framework. We now filter out all symbols not in metadata so we don't show incorrect entry points.

@jmarolf jmarolf requested a review from a team as a code owner March 1, 2022 14:51
@ghost ghost added the Area-IDE label Mar 1, 2022
@jmarolf jmarolf force-pushed the bugfix/vb-winforms-entry-point-netcore branch from cbef3a5 to 771e539 Compare March 3, 2022 22:36
@jmarolf jmarolf requested a review from a team March 3, 2022 22:37
@jmarolf jmarolf requested review from a team and jasonmalinowski March 3, 2022 23:49
@jmarolf jmarolf force-pushed the bugfix/vb-winforms-entry-point-netcore branch from fb8bca8 to 7cce9fe Compare March 4, 2022 03:14
@jmarolf jmarolf enabled auto-merge March 4, 2022 20:22
@melytc
Copy link
Copy Markdown

melytc commented Mar 9, 2022

Gentle ping on this. I see PR is set to auto-merge, but checks haven't passed completely. @jmarolf

@jmarolf
Copy link
Copy Markdown
Contributor Author

jmarolf commented Mar 10, 2022

@melytc integration tests have been on the floor for a week+. I can keep re-running them and hoping they eventually pass.

@jmarolf
Copy link
Copy Markdown
Contributor Author

jmarolf commented Mar 11, 2022

/azp run roslyn-integration-CI

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

' Only search source symbols
visitor.Visit(symbol.ContainingCompilation.SourceModule.GlobalNamespace)
Return visitor.EntryPoints
End Function
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it saddens me that we have two different copies of this code in C#/VB :D

@jmarolf jmarolf merged commit 3d0390a into dotnet:main Mar 15, 2022
@ghost ghost added this to the Next milestone Mar 15, 2022
@allisonchou allisonchou modified the milestones: Next, 17.2.P3 Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect entries being shown after calling FindEntryPoints

6 participants