-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Continue using HashCodeCombiner in Razor.Language #37725
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
Conversation
@dotnet/aspnet-blazor-eng could I have you look at this? We switched to using HashCode from the Microsoft.BCL package, but this is slightly problematic in Razor (we have to load the assembly in tooling / sg). I'm switching it back to the older implementation. The PR blocks aspnetcore injection in to the SDK repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some clarifications on the HashCodeCombiner
usage.
src/Razor/Microsoft.AspNetCore.Razor.Language/src/AllowedChildTagDescriptorComparer.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.AspNetCore.Razor.Language/src/DefaultRazorDiagnostic.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.AspNetCore.Razor.Language/src/BoundAttributeDescriptorComparer.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.AspNetCore.Razor.Language/src/RazorConfiguration.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.AspNetCore.Razor.Language/src/SourceChange.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.AspNetCore.Razor.Language/src/StringSegment.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.AspNetCore.Razor.Language/src/Syntax/TextSpan.cs
Outdated
Show resolved
Hide resolved
src/Razor/Microsoft.CodeAnalysis.Razor/src/AssemblyIdentityEqualityComparer.cs
Outdated
Show resolved
Hide resolved
References by Razor.Language end up getting loaded in VS and the source generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
References by Razor.Language end up getting loaded in VS and the source generator. I'd like to avoid Razor to load a general purpose assembly unless we absolutely need to.