vcxproj toolset configuration
-
Hi guys,
I'm newbie for C4D SDK. I'm using MSVC to build the SDK. My MSVC toolchain only support v143 toolset (I mean PlatformToolset in vcxproj file). But the SDK generated vcxproj use v142. So my question is : is there any way to change the default v412 to v143? Many thanks! -
@yushang Welcome to the Maxon developers forum and its community, it is great to have you with us!
Getting Started
Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.
- Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
- Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
- Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.
It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: Asking Questions.
About your First Question
Your question is a bit ambiguous as to if you are just using the Visual Studio Build Tools and another IDE of your choice, or a full Visual Studio setup. In general, I would recommend our C++ Getting Started Guide and there the Getting Started with the Cinema 4D C++ SDK on Windows subsection. It will provide all the necessary information to build the SDK for the first time.
- We do only support the build environments we list in the Development Requirements, we support Visual Studio but not the build tools.
- You can certainly make it work in other IDEs and directly use the VS 2019 (v142) and the VS 2022 (v143) build tools, but that is out of scope of support.
- The solution generated by the project tool, I assume that is what you meant with 'the SDK generated vcxproj ', targets VS 2019 and you cannot generate native VS 2022 solutions with it.
- But you can just load a VS 2019 solution with VS 2022 (cancel the dialog asking you to convert the solution, you only have to do that once).
- Similarly, at least I think so, you can also just use the VS 2022 build tools on a 2019 solution.
- To be safe, I would recommend installing both VS 2019 and 2022 and their build on a machine, in the order 2019, 2022, so that 2022 becomes the default app but can still access any special 2019 things in the build process when needed from the build tools. This only applies to the build tools, to build directly with the Visual Studio IDE, you can just install VS 2022.
Cheers,
Ferdinand -
@ferdinand Thanks for reply. I think I understood it. As an workarround, I can replace all the v142 in generated vcxproj with v143. I'm not using VS IDE , so I have to do it manually.