以编程方式设置C ++ 17 [英] Set C++17 programmatically

查看:96
本文介绍了以编程方式设置C ++ 17的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2017中,我们可以通过Properties |选择C ++语言标准C / C ++ |语言。


您可以解释一下,无论是否使用EnvDTE,我如何以编程方式(使用C ++ \ CLI或C#)进行操作?  

解决方案

您好,


感谢您在此处发帖。


>>您能解释一下,无论是否使用EnvDTE,如何以编程方式(C ++ \ CLI或C#)进行解释?


AFAIK,您可以通过C ++ / CLI项目的Properties Page选择C ++语言标准,或者您可以使用命令行工具来执行此操作,但我没有找到任何方法以编程方式执行此操作,我建议您参考:


访问项目类型特定项目,项目项目和配置属性


显示自动化模型在适用于使用特定语言开发的项目的Visual Studio中,提供了可以在Visual Basic或Visual C#项目中以编程方式操作项目,项目项和配置属性的对象。


<希望它会对你有所帮助。


祝福,祝你好运b $ b


杰克


In Visual Studio 2017, we can choose C++ language standard through Properties | C/C++ | Language.

Could you please explain how can I do it programmatically (in C++\CLI or C#), with or without EnvDTE?  

解决方案

Hi,

Thanks for posting here.

>> Could you please explain how can I do it programmatically (in C++\CLI or C#), with or without EnvDTE?

AFAIK, you could choose C++ language standard through Properties Page of C++/CLI project, or you could use the command line tools to do this, but I didn't find any method to do it programmatically, I suggest you refer to this:

Accessing Project Type Specific Project, Project Item, and Configuration Properties

It shows the automation model in Visual Studio that applies to projects developed with specific languages offers objects that can programmatically manipulate projects, project items, and configuration properties in Visual Basic or Visual C# projects.

Hope it will help you.

Best Wishes,

Jack


这篇关于以编程方式设置C ++ 17的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆