Skip to content
Browse files

Now finds .exe assemblies as well as .dll

  • Loading branch information...
1 parent fe43d17 commit 4961ee331b6d35774289e46dcec2759ed578198f @mikehadlow committed Apr 26, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −2 AsmSpy/Program.cs
  2. +1 −1 AsmSpy/UnitTests.cs
View
5 AsmSpy/Program.cs
@@ -1,4 +1,5 @@
using System;
+using System.Linq;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
@@ -27,8 +28,8 @@ static void Main(string[] args)
public static void AnalyseAssemblies(DirectoryInfo directoryInfo)
{
- var assemblyFiles = directoryInfo.GetFiles("*.dll");
- if (assemblyFiles.Length == 0)
+ var assemblyFiles = directoryInfo.GetFiles("*.dll").Concat(directoryInfo.GetFiles("*.exe"));
+ if (!assemblyFiles.Any())
{
Console.WriteLine("No dll files found in directory: '{0}'",
directoryInfo.FullName);
View
2 AsmSpy/UnitTests.cs
@@ -6,7 +6,7 @@ public class UnitTests
{
public void AnalyseAssemblies_should_output_correct_info()
{
- var path = @"D:\Source\sutekishop\Suteki.Shop\Suteki.Shop\bin";
+ const string path = @"D:\Source\sutekishop\Suteki.Shop\Suteki.Shop.CreateDb\bin\Debug";
Program.AnalyseAssemblies(new DirectoryInfo(path));
}
}

0 comments on commit 4961ee3

Please sign in to comment.
Something went wrong with that request. Please try again.