Skip to content

Conversation

@elinor-fung
Copy link
Member

PEAssembly::GetDisplayName just throws E_NOTIMPL in the DAC. Just make the current callers directly return E_NOTIMPL.

cc @dotnet/dotnet-diag @lambdageek

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

else if (name)
name[count-1] = 0;
}
else if (!pAssembly->GetPEAssembly()->IsReflectionEmit())
Copy link
Member

@jkotas jkotas Jul 2, 2024

Choose a reason for hiding this comment

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

Is this DAC API used by anything? It does the same thing as GetAssemblyLocation, just the error handling is a bit different and it does not actually return assembly name as its name says.

IIRC, this API was originally part of an intern project that never shipped.

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like SOS and clrmd use this (and not GetAssemblyLocation) when getting/showing information about an assembly/module or as a fallback when getting the name for a metadata token if it can't go through IMetaDataImport.

@jkotas
Copy link
Member

jkotas commented Jul 2, 2024

Thanks

@jkotas jkotas merged commit 1d16fd1 into dotnet:main Jul 3, 2024
@elinor-fung elinor-fung deleted the notimpl-getdisplayname branch July 3, 2024 03:24
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants