-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Ignore internal .NET Framework assemblies in AssemblySymbolLoader #46059
Conversation
Resolves the false positive warnings in dotnet/aspnetcore#59853
The NoWarn can be removed when dotnet/sdk#46059 got merged and consumed with a new .NET SDK.
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.
One minor comment, otherwise LGTM.
src/Compatibility/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs
Outdated
Show resolved
Hide resolved
@@ -16,6 +16,22 @@ namespace Microsoft.DotNet.ApiSymbolExtensions | |||
/// </summary> | |||
public class AssemblySymbolLoader : IAssemblySymbolLoader | |||
{ | |||
// This is a list of dangling .NET Framework internal assemblies that should never get loaded. | |||
private static readonly HashSet<string> s_assembliesToIgnore = [ |
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.
How did you obtain this list?
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.
Eric gave me the list but the tool and the command that generated is C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8>\tools\verifyClosure\verifyClosure.exe .\
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 a couple minor suggestions.
src/Compatibility/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs
Outdated
Show resolved
Hide resolved
src/Compatibility/Microsoft.DotNet.ApiSymbolExtensions/AssemblySymbolLoader.cs
Outdated
Show resolved
Hide resolved
…ySymbolLoader.cs Co-authored-by: Eric StJohn <[email protected]>
Unrelated but the hardcoded ".dll" extension in This isn't a problem with Package Validation as only |
* Update .NET SDK Update .NET SDK to version 10.0.100-alpha.1.25063.8. --- updated-dependencies: - dependency-name: Microsoft.NET.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Suppress CP1002 temporarily via NoWarn The NoWarn can be removed when dotnet/sdk#46059 got merged and consumed with a new .NET SDK. * Remove NoWarns completely * Update SDK and dotnet tool versions * Update SDK and tools version in global.json * NoWarn CP1002 for MessagePack project --------- Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Viktor Hofer <[email protected]>
Resolves the false positive warnings in dotnet/aspnetcore#59853