如何在 Visual Studio 解决方案中定义默认项目设置 [英] How to define default project setting in a visual studio solution

查看:37
本文介绍了如何在 Visual Studio 解决方案中定义默认项目设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个解决方案,其中包含多个相互关联的项目.

I have a solution that has several projects all related to each other.

当我创建一个新项目时,我需要进入它的设置并更改默认设置(例如附加包含目录、附加 lib 目录、使用 Unicode 和...)

When I create a new project, I need to go into its setting and change default setting (for example additional include directory, additional lib directory, using Unicode and ...)

如果我没有为项目设置该属性(例如项目类型,如果它是 MFC 或控制台或库),有没有一种方法可以在解决方案中创建一个配置,所有项目都使用该设置

Is there a way that I can create a configuration in solution that all projects using that setting if I am not setting that property for the project (for example type of project, if it is MFC or console or library )

推荐答案

您可以为您的特定设置创建项目模板并将其导入 Visual Studio:

You can create a project template for your specific settings and import that into Visual Studio:

见:

这篇关于如何在 Visual Studio 解决方案中定义默认项目设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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