如何在 Visual Studio 解决方案中定义默认项目设置 [英] How to define default project setting in a visual studio solution
问题描述
我有一个解决方案,其中包含多个相互关联的项目.
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屋!