Msbuild example for Clarion

Here are the basics for building a call to msbuild to compile your .cwproj files.

"<msbuildPath>\msbuild.exe" msbuild.exe /property:NoDependency=true /property:ClarionBinPath="<Path to Clarion.exe>" /l:FileLogger,Microsoft.Build.Engine;logfile="<Path to log file>";Append=true "<Path to .cwproj>"

You can include optional parameters after the ClarionBinPath like:


The clarion_version property is used when you are using the IDE’s “version” feature. In other words, you are using one IDE to compile with multiple different Clarion installation you have on disk. See the help topic “Versions - adding to the IDE”

The installed version of msBuild can be found in the registry Local Machine: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\MSBuild\ToolsVersions

1 Like