Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Kwcsprojparser

The kwcsprojparser command creates a build specification for Visual Studio C# projects and solutions. It can also be used to generate build settings for the C# portion of a mixed-language integration project.

The build specification is used as input for an integration build analysis with kwbuildproject. The build specification can also be used with the desktop command-line tool, kwcheck.

Usage

To generate a build specification:

kwcsprojparser <input-file> --config <config-name> [--output <output-file>]

where

  • <input-file> is the project or solution file to process
  • <config-name> is the name of the build configuration you want to use
  • <output-file> allows you to specify the name and location of the build specification file. By default, it is named <input-file>.out and is saved in the current working directory.

For example:

kwcsprojparser nant.vsnet.csproj --config "Debug|AnyCPU"

To list valid build configurations:

kwcsprojparser <input-file> --list-configs

For example:

kwcsprojparser nant.vsnet.csproj --list-configs

Options

Name Short name Description
--config <config-name> -c specify build configuration to use when generating the build specification
--help -h display this help and exit
--list-configs -lc display a list of valid build configurations
--output <output-file> -o specify the name and location of the build specification file. By default, it is named <input-file>.out and is saved in the current working directory. The suffix .out is appended by default.
--property <name>=<value>[;<name>=<value>...] -p set or override the project-level property
--version -v display version and exit