I\'m developing a Windows application in VS2005 using C#. In my project, I generate dlls and store them in a directory. The dlls will be named as TestAssembly1, TestAssembly
You would just use Directory.GetFiles, passing in a pattern for the files you want to return:
http://msdn.microsoft.com/en-us/library/wz42302f.aspx
string[] files = Directory.GetFiles(@"C:\My Directory\", "TestAssembly*.dll");