How to edit project file in VS?

本文介绍如何在Visual Studio中卸载并编辑项目文件,包括通过解决方案资源管理器进行操作的方法及直接编辑加载项目的步骤。适用于需要修改MSBuild项目文件格式的开发者。

[From: http://msdn.microsoft.com/en-us/library/ms171487(VS.80).aspx]

Visual Studio

How To: Edit Project Files

MSBuild project files are written in a standard XML format, and can be edited in any XML editor. Visual Studio 2005 provides two ways to view and edit a loaded project file without closing the IDE.

To unload and edit a project file in Visual Studio

  1. In Solution Explorer, right-click the project and click Unload Project.

    The project is marked (unavailable).

    NoteNote

    The Unload Project command only appears if Solution Explorer is configured to display solutions. To configure Solution Explorer to display solutions, select Always show solutions in the General, Projects and Solutions, Options Dialog Box.

  2. In Solution Explorer, right-click the unavailable project and click Edit <Project File>.

    The project file opens in the Visual Studio XML Editor.

  3. Edit, save, and close the project file.

  4. In Solution Explorer, right-click the unavailable project and click Reload Project.

To edit a loaded project file in Visual Studio

  1. Open a new instance of Visual Studio.

  2. In the new instance of Visual Studio, open the loaded project file that you want to edit.

  3. Edit and save the project file.

    The instance of Visual Studio with the loaded project displays the File Modification Detected dialog box.

  4. Click Reload on the File Modification Detected dialog box to reload the project with the modified project file.

See Also

Concepts
MSBuild
MSBuild Project File Schema Reference
Other Resources
MSBuild Concepts
MSBuild Reference

转载于:https://www.cnblogs.com/taoxu0903/archive/2008/12/05/1348706.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值