Inspect assembly contents using MetadataLoadContext

This sample is a .NET Core console application that loads a specified assembly and prints its custom attributes and defined types. It demonstrates how to use the System.Reflection.MetadataLoadContext API to load an assembly for inspection purposes.

Build and run the sample

After downloading the source, open a command prompt in the sample directory and enter the following commands:

dotnet build
dotnet run -- <assembly path>