Skip to content

Generating VS Projects using ProGen

Aleksandar Fabijanic edited this page Nov 8, 2023 · 4 revisions

Although CMake is the official cross-platform build system, the pre-generated VS projects are still used by core developers and shipped with Poco releases.

Whenever a new source file is added, the corresponding VS project should be re-generated.

This is achieved with the ProGen tool in the following way:

  1. Add the new file(s) to the corresponding *VS_90.vcproj file (used as template for project generation, can be edited with an ASCII editor)
  2. Build ProGen dependencies: Foundation, XML, JSON, Util
  3. Build ProGen
  4. From the VS Developer Command Prompt, regenerate the project file, eg.:
C:\poco\ProGen> bin64\progen.exe /tool=vs[140|150|160|170] ..\Net\testsuite\TestSuite.progen

Output (for vs150):

Generating using templates from: C:\poco\ProGen\templates\vs150\Win32\testsuite\

Postprocessing project file: ..\Net\testsuite\TestSuite_vs150.vcproj

Fixing Visual Studio 2017 project file: ..\Net\testsuite\TestSuite_vs150.vcxproj

NOTES:

  • Step 4. must be done from the VS Developer Command Prompt
  • ProGen configuration should specify the same VS version as the Developer Command Prompt, for the above example:
progen.postprocess.upgrade2008to2015.tool = ${system.env.VS150COMNTOOLS}\\..\\IDE\\DevEnv.exe

This is what the process looks like:

image

That's it!