Why doesn't Visual Studio refresh the folders when I click the Solution Explorer refresh button?

前端 未结 5 2049
暖寄归人
暖寄归人 2020-12-24 04:53

In Visual Studio 2008, I can see all my project files in my Solution Explorer, and these files exist in an actual diectory.

However, if I add a file to that directory

5条回答
  •  悲&欢浪女
    2020-12-24 05:15

    These days you can use the TF command line to do this.

    • Run the developer command prompt (from VS it's tools, command line, developer command prompt; or often you can find a shortcut under your start menu's Visual Studio Tools folder).
    • Navigate to the root folder for your project (i.e. the folder for which you want all content synced to source control)
    • run tf add * /recursive to select everything / push it all to the project. Other options documented in the tf docs.
    • use the Team Explorer pane's Pending Changes section to make any adjustments you may wish via the UI.
    • Check in your changes

提交回复
热议问题