Hi @lyun518 ,
Welcome to Microsoft Q&A forum.
If you select the c++17 version in Properties > Configuration Properties > General > C++ Language Standard, and then right-click your project and click Unload Project
, and right-click it again click Edit Project File
, you can then find that in .vcxproj file, there is a corresponding property called <LanguageStandard>stdcpp17</LanguageStandard>
.
You can try to add this property into msbuild command like msbuild "myproject.sln" /p:LanguageStandard="stdcpp17"
Best Regards,
Tianyu
- If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.