GUI是否在VS 2010项目中包含.prop文件? [英] GUI to include a .prop file in a VS 2010 project?

查看:136
本文介绍了GUI是否在VS 2010项目中包含.prop文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2010不再使用.vsprops文件,而是使用.props文件.

要在Visual Studio 2008项目中包含.vsprops文件,可以右键单击 Solution Explorer 面板中的项目图标,选择 Properties ,然后转到配置属性|常规部分,然后修改继承的项目属性表属性以包含.vsprops路径列表.也可以直接修改Visual Studio 2008项目文件.

Visual Studio 2010 GUI中是否可以在项目中包含.props文件? 继承的项目属性表属性似乎已被删除.如果手动编辑项目文件是包括.props文件的唯一方法,那么在哪里可以找到有关此文件的文档?

我并不是说要在项目中的文件列表中添加.props文件,而是要告诉项目使用一个.props文件.

解决方案

这没有改变.使用视图">其他Windows">属性管理器".导航到树视图,然后打开要更改的配置.右键点击>添加新内容.


如果没有看到此菜单选项,则可以使用工具">自定义",命令"选项卡来修复菜单.选择 单击查看",然后单击添加命令".在左侧列表框中选择查看",在右侧列表框中选择属性管理器".这样会将命令重新添加到查看"菜单中.

奇怪的是,它确实丢失了,安装VS2010并导入VS2008设置时可能发生了.从其他程序员对此问题的判断来看,此功能并不是完美无缺的,请注意,您可能会在其他菜单项上丢失您的信息.如果尚未对工具>导入和导出设置进行广泛的自定义,那么重设"可能是个好主意.

Visual Studio 2010 has no longer uses .vsprops files and instead uses .props files.

To include a .vsprops file in a Visual Studio 2008 project, one could right-click the project icon in the Solution Explorer panel, choose Properties, go to the Configuration Properties | General section, and modify the Inherited Project Property Sheets property to contain a list of .vsprops paths. One could also modify the Visual Studio 2008 project file directly.

Is there a way in the Visual Studio 2010 GUI to include .props files in a project? The Inherited Project Property Sheets property seems to have been removed. If manual editing of the project file is the only way to include .props files, where can one find documentation on doing it?

I'm not talking about adding a .props file to the list of files in the project, I mean how do I tell the project to use a .props file.

解决方案

That hasn't changed. Use View > Other Windows > Property Manager. Navigate the tree view there and open the configuration you want to change. Right-click > Add New.


If you don't see this menu option then you can repair the menu with Tools > Customize, Commands tab. Select "View" and click Add Command. Select "View" in the left listbox, "Property Manager" in the right one. That adds the command back to your View menu.

It is odd that it is missing of course, could have happened when you installed VS2010 and it imported your VS2008 settings. This feature is not flawless, judging from other programmers' questions about it, beware that you might be missing out on other menu items. If you haven't customized anything extensively then Tools > Import and Export Settings, Reset might be a good idea.

这篇关于GUI是否在VS 2010项目中包含.prop文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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