Solution:
The basic usage of csinativeimagegen.exe involves specifying the assembly you want to compile and optionally, the output directory for the generated native image. csinativeimagegen.exe
dotnet csinativeimagegen --assembly <path-to-assembly.dll> --output <output-directory>
Seek further investigation if: