Dotnet.ProjInfo 0.9.0

Get msbuild info

There is a newer version of this package available.
See the version list below for details.
Install-Package Dotnet.ProjInfo -Version 0.9.0
dotnet add package Dotnet.ProjInfo --version 0.9.0
<PackageReference Include="Dotnet.ProjInfo" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dotnet.ProjInfo --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Build status
Build Status

dotnet-proj-info

  • as library: Dotnet.ProjInfo NuGet
  • dotnet cli tool: dotnet proj-info NuGet

Features

  • get properties
  • get project to project references
  • get fsc command line arguments
  • list installed .NET Framework versions
  • get references path of .NET asseblies like System, System.Data

Support both project sdk:

  • dotnet/sdk style projects (slim proj, usually .net core)
  • old sdk projects (verbose proj, usually .NET)

Works on mono and windows, and allow to specify the dotnet or msbuild to use

as Library

Used by:

as .NET Cli tool

Add

<DotNetCliToolReference Include="dotnet-proj-info" Version="*" />

restore, and it use as dotnet proj-info

Support args of .NET cli (dotnet), like:

  • -c or --configuration
  • -f or --framework
  • -r or --runtime

See examples directory for a quick tutorial

USAGE: proj-info [--help] [--fsc-args] [--project-refs] [--get-property [<string>...]]
                 [--net-fw-references-path [<string>...]] [--installed-net-frameworks] [--framework <string>]
                 [--runtime <string>] [--configuration <string>] [--verbose] [--msbuild <string>]
                 [--dotnetcli <string>] [--msbuild-host <auto|msbuild|dotnetmsbuild>] [<string>]

PROJECT:

    <string>              the MSBuild project file

OPTIONS:

    --fsc-args            get fsc arguments
    --project-refs        get project references
    --get-property, -gp [<string>...]
                          msbuild property to get (allow multiple)
    --net-fw-references-path [<string>...]
                          list the .NET Framework references
    --installed-net-frameworks
                          list of the installed .NET Frameworks
    --framework, -f <string>
                          target framework, the TargetFramework msbuild property
    --runtime, -r <string>
                          target runtime, the RuntimeIdentifier msbuild property
    --configuration, -c <string>
                          configuration to use (like Debug), the Configuration msbuild property
    --verbose, -v         verbose log
    --msbuild <string>    MSBuild path (default "msbuild")
    --dotnetcli <string>  Dotnet CLI path (default "dotnet")
    --msbuild-host <auto|msbuild|dotnetmsbuild>
                          the Msbuild host, if auto then oldsdk=MSBuild dotnetSdk=DotnetCLI
    --help                display this list of options.

Build

Clone repo.

Run:

dotnet build

To run tests:

dotnet test -v n

To create packages:

dotnet pack

will create packages in artifacts\nupkgs

pass /p:Version=1.2.3 to create a package with version 1.2.3

Build status
Build Status

dotnet-proj-info

  • as library: Dotnet.ProjInfo NuGet
  • dotnet cli tool: dotnet proj-info NuGet

Features

  • get properties
  • get project to project references
  • get fsc command line arguments
  • list installed .NET Framework versions
  • get references path of .NET asseblies like System, System.Data

Support both project sdk:

  • dotnet/sdk style projects (slim proj, usually .net core)
  • old sdk projects (verbose proj, usually .NET)

Works on mono and windows, and allow to specify the dotnet or msbuild to use

as Library

Used by:

as .NET Cli tool

Add

<DotNetCliToolReference Include="dotnet-proj-info" Version="*" />

restore, and it use as dotnet proj-info

Support args of .NET cli (dotnet), like:

  • -c or --configuration
  • -f or --framework
  • -r or --runtime

See examples directory for a quick tutorial

USAGE: proj-info [--help] [--fsc-args] [--project-refs] [--get-property [<string>...]]
                 [--net-fw-references-path [<string>...]] [--installed-net-frameworks] [--framework <string>]
                 [--runtime <string>] [--configuration <string>] [--verbose] [--msbuild <string>]
                 [--dotnetcli <string>] [--msbuild-host <auto|msbuild|dotnetmsbuild>] [<string>]

PROJECT:

    <string>              the MSBuild project file

OPTIONS:

    --fsc-args            get fsc arguments
    --project-refs        get project references
    --get-property, -gp [<string>...]
                          msbuild property to get (allow multiple)
    --net-fw-references-path [<string>...]
                          list the .NET Framework references
    --installed-net-frameworks
                          list of the installed .NET Frameworks
    --framework, -f <string>
                          target framework, the TargetFramework msbuild property
    --runtime, -r <string>
                          target runtime, the RuntimeIdentifier msbuild property
    --configuration, -c <string>
                          configuration to use (like Debug), the Configuration msbuild property
    --verbose, -v         verbose log
    --msbuild <string>    MSBuild path (default "msbuild")
    --dotnetcli <string>  Dotnet CLI path (default "dotnet")
    --msbuild-host <auto|msbuild|dotnetmsbuild>
                          the Msbuild host, if auto then oldsdk=MSBuild dotnetSdk=DotnetCLI
    --help                display this list of options.

Build

Clone repo.

Run:

dotnet build

To run tests:

dotnet test -v n

To create packages:

dotnet pack

will create packages in artifacts\nupkgs

pass /p:Version=1.2.3 to create a package with version 1.2.3

Showing the top 1 GitHub repositories that depend on Dotnet.ProjInfo:

Repository Stars
dotnet/docfx
Tools for building and publishing API documentation for .NET projects

Version History

Version Downloads Last updated
0.36.0 703 6/26/2019
0.35.0 956 6/6/2019
0.34.0 278 5/17/2019
0.33.0 2,772 3/11/2019
0.32.1 569 3/2/2019
0.32.0 183 2/28/2019
0.31.0 5,719 2/10/2019
0.30.0 93 2/10/2019
0.20.0 22,597 11/4/2018
0.12.2 1,134 10/19/2018
0.12.0 129 10/19/2018
0.11.0 1,917 10/8/2018
0.9.0 58,300 10/27/2017
0.8.0 303 10/25/2017
0.7.4 10,909 6/20/2017
0.7.3 320 6/19/2017
0.7.2 272 6/19/2017
0.7.1 322 6/15/2017
0.7.0 277 6/14/2017
0.6.0 528 4/12/2017
0.5.0 2,471 3/17/2017
Show less