强制VSProps设置覆盖项目设置 [英] Force VSProps settings to override project settings

查看:135
本文介绍了强制VSProps设置覆盖项目设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个vsprops文件,定义优化我们的所有项目应该为Visual Studio 2008构建。如果我将项目的属性设置为继承自项目默认的父项,它的工作原理,并填充它们在vcproj文件。但是,这并不能保护我免受开发人员检查更改优化的项目文件。在这种情况下,项目设置将用于vsprops设置。我需要使它,使vsprops总是优先于什么在vcproj文件。这可能吗?欢迎其他解决方法。

I have a vsprops file that defines the optimizations all of our projects should be built with for Visual Studio 2008. If I set the properties for the project to "inherit from parent of project defaults" it works, and fills them in the vcproj file. However, this doesn't protect me from a developer checking in a project file that changes the optimizations. In this case, the project settings are used over the vsprops settings. I need to make it so that vsprops always takes precedence over what is in the vcproj file. Is this possible? Other workarounds are also welcome.

推荐答案

我可以提供的唯一建议是,如果你打开项目的物业经理,右键单击其中一个配置文件夹,它应该弹出一个菜单项,名为覆盖属性...,依次打开一个对话框,列出项目配置中覆盖属性表属性表的每个属性集 - 以及选择一些或全部的设施,并删除替换。

The only advice I can give is, if you open up the Property Manager for the project, and Right Click on one of the Configuration folders, it should popup a menu with an item called "Overidden Properties..." which in turn opens a dialog box that lists each property set in the project configuration that overrides a property sheet property sheet - along with the facility to select some or all, and delete the overrides.

这篇关于强制VSProps设置覆盖项目设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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