How to edit project file in VS?

來源:互聯網
上載者:User
文章目錄
  • To edit a loaded project file in Visual Studio

[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).

    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.

  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 AlsoConcepts

MSBuild
MSBuild Project File Schema Reference
Other Resources

MSBuild Concepts
MSBuild Reference

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.