A .NET tool for inspecting and extracting native dependencies from .NET assemblies and NuGet packages.
Install as a global .NET tool:
dotnet tool install -g NativeTestDisplay information about native dependencies in .dll or .nupkg files:
native-test info <file1.dll> <file2.nupkg> ...Example:
native-test info MyAssembly.dll SomePackage.nupkgUnpack native dependencies for a specific architecture and OS:
native-test unpack <directory> <architecture> <os> [--remove-zip]Arguments:
directory- Directory containing DLL files to processarchitecture- Target architecture:x86,x64, orarm64os- Target operating system:macos,linux, orwindows--remove-zipor-r- (Optional) Remove the native.zip from DLLs after extracting
Examples:
Extract native dependencies without removing embedded zip:
native-test unpack ./bin/Release/net8.0 x64 linuxExtract and remove the embedded zip:
native-test unpack ./bin/Release/net8.0 x64 linux --remove-zipTo automatically publish to NuGet on release:
- Add a
NUGET_KEYsecret to your GitHub repository with your NuGet API key - Update the
OWNERin.github/workflows/publish.ymlwith your GitHub username/org - Update
PackageProjectUrlandRepositoryUrlin the.fsprojfile - Push changes to
RELEASE_NOTES.mdto trigger a build and publish