Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Trying to get all resource files in solution and display their filenames

$
0
0

I am building a visual studio Add-in, and I am trying to get all the resource files(.resx) in a solution and display them into a listview. The code I came up with doesn't seem to do anything, so I was hoping someone could take a look at it. I am not trying to just get the name of them I want to display the full path to the files aswell.

Even if I could get all resource files for individual projects, then that is a start. I would appreciate any help.

Private Sub btnGo_Click(sender As Object, e As EventArgs, ByVal resourceFiles As    Common.ResourceFileCollection)
      If resourceFiles IsNot Nothing Then
        For Each resourceFile As Common.ResourceFile In resourceFiles
            ListView1.Items.Add(resourceFile.FileName)
        Next
    End If
 End Sub



Viewing all articles
Browse latest Browse all 4410

Trending Articles