How to edit project file in VS?
2008-12-05 20:49
507 查看
[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.
The project is marked (unavailable).
In Solution Explorer, right-click the unavailable project and click Edit <Project File>.
The project file opens in the Visual Studio XML Editor.
Edit, save, and close the project file.
In Solution Explorer, right-click the unavailable project and click Reload Project.
In the new instance of Visual Studio, open the loaded project file that you want to edit.
Edit and save the project file.
The instance of Visual Studio with the loaded project displays the File Modification Detected dialog box.
Click Reload on the File Modification Detected dialog box to reload the project with the modified project file.
MSBuild Project File Schema Reference
MSBuild Reference
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
In Solution Explorer, right-click the project and click Unload Project.The project is marked (unavailable).
![]() Note |
---|
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. |
The project file opens in the Visual Studio XML Editor.
Edit, save, and close the project file.
In Solution Explorer, right-click the unavailable project and click Reload Project.
To edit a loaded project file in Visual Studio
Open a new instance of Visual Studio.In the new instance of Visual Studio, open the loaded project file that you want to edit.
Edit and save the project file.
The instance of Visual Studio with the loaded project displays the File Modification Detected dialog box.
Click Reload on the File Modification Detected dialog box to reload the project with the modified project file.
See Also
Concepts
MSBuildMSBuild Project File Schema Reference
Other Resources
MSBuild ConceptsMSBuild Reference
相关文章推荐
- How to successfully edit readonly file in VS?
- How do I fix the linker error in project upgraded from VS2010 to VS2013 where the linker is looking
- How to use an external dll file in VisualStudio project
- How to use an external dll file in VisualStudio project
- How To Append Content To File In Java
- git tip: How to undo an uncommitted change/deletion for a specific file in your working directory
- 问题1:Project has no default.properties file! Edit the project properties to set one.
- Post-Build script to fix MSI issues in Vista for VS 2005 Setup and Deployment Projects
- How to change context root of a dynamic web project in Eclipse
- an oracle article in high level to descibe how to archtichre operator JAVA relevet project
- Project has no default.properties file! Edit the project properties to set one
- how to install vscode with Python extension in ubuntu 16
- Android中导入工程出现Project has no default.properties file! Edit the project properties to set one.的解决方法
- How to Play, Record, and Edit Videos in iOS
- CodeProject - How to develop a screen saver in C#(翻译)
- How to Open a Text File in VB .NET
- How to solve "one or more projects in the solution were not loaded correctly" problem?
- How to resovle aspnet_merge.exe error issue in web deployment project
- How to Fix Missing TortoiseSVN File Status Icons in Windows
- [Drupal] How to add the js file and js code block in Drupal