Skip to content

Dotnet Source and Assembly Inspector (Dosai) is a tool to list details about the namespaces and methods from sources and assemblies.

License

Notifications You must be signed in to change notification settings

owasp-dep-scan/dosai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotnet Source and Assembly Inspector (Dosai)

List details about the namespaces and methods from a C# .NET source file or assembly

Usage

Dosai [command] [options]

Commands:

methods Retrieve details about the methods
--version Show version information
-?, -h, --help Show help and usage information

Options:

--path [path] (REQUIRED) The file or directory to inspect
--o The output file location and name, default value when option not provided is 'dosai.json'


Developers

Running code directly from the code repository

  1. dotnet build ./Dosai
  2. Run a command such as:
    • dotnet run --project ./Dosai/ methods --path ./Dosai/bin/x64/Debug/net8.0/Dosai.dll
    • dotnet run --project ./Dosai/ methods --path ./Dosai/Dosai.cs

Generating a self-contained executable for a system

  • Windows: dotnet publish -r win-x64 --self-contained
  • Linux: dotnet publish -r linux-x64 --self-contained

Invoking the self-contained executable

  • Windows: Dosai.exe methods --path ./Dosai/bin/x64/Debug/net8.0/Dosai.dll
  • Linux: Dosai methods --path ./Dosai/Dosai.cs

Run unit tests

dotnet test