Skip to content
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

Report EnC warning when entry point is changed #73565

Merged
merged 2 commits into from
May 18, 2024
Merged

Conversation

tmat
Copy link
Member

@tmat tmat commented May 17, 2024

Unless the entry point is being executed (it's an active method) changes won't likely have any effect until the app is restarted.
This new rude edit is not blocking - the change can still be applied. It just informs the customer that they might want to restart the app.

Implements: #73472

@tmat tmat requested review from a team as code owners May 17, 2024 22:19
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead labels May 17, 2024
@tmat
Copy link
Member Author

tmat commented May 17, 2024

@davidwengier ptal

private static bool DifferOnlyInWhitespace(IEnumerable<char> expected, IEnumerable<char> actual)
=> expected.Where(c => !char.IsWhiteSpace(c)).SequenceEqual(actual.Where(c => !char.IsWhiteSpace(c)));

private static string VisualizeWhitespace(string str)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a cool idea!

…inueAnalyzer.cs

Co-authored-by: David Wengier <david.wengier@microsoft.com>
@tmat tmat enabled auto-merge (squash) May 18, 2024 04:13
@tmat tmat merged commit 3dfab18 into dotnet:main May 18, 2024
28 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 18, 2024
@tmat tmat deleted the EncMainWarning branch May 20, 2024 22:40
@Cosifne Cosifne modified the milestones: Next, 17.11 P2 May 28, 2024
@tmat tmat mentioned this pull request Sep 14, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Interactive untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants