pare-dotnet

v0.24.2
io.github.Dave-London/pare-dotnet Checked 2 hours ago Published 3 days ago

Pare .NET — Structured .NET CLI operations as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

build .NET Build

Runs dotnet build and returns structured diagnostics (file, line, column, code, severity, message).

ParameterTypeDescription
compactbooleanPrefer compact output
configurationstringBuild configuration (e.g. Debug, Release)
frameworkstringTarget framework (e.g. net8.0)
noRestorebooleanSkip automatic restore before building (--no-restore)
pathstringProject root path
projectstringPath to the project or solution file
runtimestringTarget runtime identifier (e.g. win-x64, linux-x64)
verbositystringMSBuild verbosity level

test .NET Test

Runs dotnet test and returns structured test results (name, status, pass/fail counts).

ParameterTypeDescription
compactbooleanPrefer compact output
configurationstringBuild configuration (e.g. Debug, Release)
filterstringFilter expression to select tests (--filter)
frameworkstringTarget framework (e.g. net8.0)
noBuildbooleanSkip build before testing (--no-build)
noRestorebooleanSkip automatic restore before testing (--no-restore)
pathstringProject root path
projectstringPath to the test project or solution file
verbositystringMSBuild verbosity level

run .NET Run

Runs a .NET application and returns structured output (exit code, stdout, stderr).

ParameterTypeDescription
argsarrayArguments to pass to the application (after --)
compactbooleanPrefer compact output
configurationstringBuild configuration (e.g. Debug, Release)
frameworkstringTarget framework (e.g. net8.0)
maxOutputSizeintegerMaximum size in bytes for stdout/stderr before truncation. Default: 1048576 (1MB).
noBuildbooleanSkip build before running (--no-build)
noRestorebooleanSkip automatic restore before running (--no-restore)
pathstringProject root path
projectstringPath to the project file to run
timeoutintegerExecution timeout in milliseconds. Overrides the default 300s. Min: 1000 (1s), Max: 600000 (10m).

publish .NET Publish

Runs dotnet publish for deployment and returns structured output with output path and diagnostics.

ParameterTypeDescription
compactbooleanPrefer compact output
configurationstringBuild configuration (e.g. Debug, Release)
frameworkstringTarget framework (e.g. net8.0)
noBuildbooleanSkip build before publishing (--no-build)
noRestorebooleanSkip automatic restore before publishing (--no-restore)
outputstringOutput directory for published files (-o)
pathstringProject root path
projectstringPath to the project or solution file
runtimestringTarget runtime identifier (e.g. win-x64, linux-x64)
selfContainedbooleanPublish as self-contained deployment (--self-contained)

restore .NET Restore

Runs dotnet restore to restore NuGet dependencies and returns structured results.

ParameterTypeDescription
compactbooleanPrefer compact output
lockedbooleanRequire lock file is up to date (--locked-mode)
pathstringProject root path
projectstringPath to the project or solution file
sourcearrayNuGet package source URIs to use (--source)
verbositystringMSBuild verbosity level

clean .NET Clean

Runs dotnet clean to remove build outputs and returns structured results.

ParameterTypeDescription
compactbooleanPrefer compact output
configurationstringBuild configuration to clean (e.g. Debug, Release)
frameworkstringTarget framework to clean (e.g. net8.0)
pathstringProject root path
projectstringPath to the project or solution file
verbositystringMSBuild verbosity level

add-package .NET Add Package

Runs dotnet add package to add a NuGet package and returns structured results. WARNING: may execute untrusted code.

ParameterTypeDescription
package *stringNuGet package name to add
compactbooleanPrefer compact output
noRestorebooleanSkip automatic restore after adding (--no-restore)
pathstringProject root path
prereleasebooleanAllow prerelease packages (--prerelease)
projectstringPath to the project file
sourcestringNuGet package source URI to use (--source)
versionstringPackage version to install (--version)

list-package .NET List Packages

Runs dotnet list package and returns structured NuGet package listings per project and framework.

ParameterTypeDescription
compactbooleanPrefer compact output
deprecatedbooleanShow deprecated packages (--deprecated)
formatstringOutput format. JSON is preferred for structured parsing (--format json)
includeTransitivebooleanInclude transitive packages (--include-transitive)
outdatedbooleanShow outdated packages (--outdated)
pathstringProject root path
projectstringPath to the project or solution file
sourcestringNuGet package source URI for version checks (--source)
vulnerablebooleanShow packages with known vulnerabilities (--vulnerable)