Compartir a través de


VSProject.Refresh Method

Definition

Refreshes the appearance of the project in Solution Explorer, refreshes the references, and gets the latest compiled versions of the files.

public:
 void Refresh();
public:
 void Refresh();
void Refresh();
[System.Runtime.InteropServices.DispId(9)]
public void Refresh ();
[<System.Runtime.InteropServices.DispId(9)>]
abstract member Refresh : unit -> unit
Public Sub Refresh ()
Attributes

Examples

[Visual Basic]

' Macro Editor  
Imports VSLangProj  
Sub RefreshExample()  
   ' This example assumes that the first project in the solution is   
   ' either a Visual Basic or C# project.  
   Dim aVSProject As VSProject = _  
      CType(DTE.Solution.Projects.Item(1).Object, VSProject)  
   aVSProject.Refresh()  
End Sub  

Remarks

This method updates the appearance of the project, including the files and folders, and gets the latest versions of all compilable files and the project file. It also refreshes all references.

Applies to