-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Generating VS Projects using ProGen
Aleksandar Fabijanic edited this page Aug 14, 2022
·
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:
- Add the new file(s) to the corresponding
*VS_90.vcprojfile (used as template for project generation, can be edited with an ASCII editor) - Build
ProGendependencies: Foundation, XML, JSON, Util - Build
ProGen - From the VS Developer Command Prompt, regenerate the project file, eg.:
C:\poco\ProGen> bin64\progen.exe /tool=vs150 ..\Net\testsuite\TestSuite.progen
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
-
ProGenconfiguration 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
That's it!