diff --git a/src/ImageProcessor.Web/NET4/ImageProcessor.Web_NET4.csproj b/src/ImageProcessor.Web/NET4/ImageProcessor.Web_NET4.csproj deleted file mode 100644 index 1bd78044d..000000000 --- a/src/ImageProcessor.Web/NET4/ImageProcessor.Web_NET4.csproj +++ /dev/null @@ -1,146 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {4F7050F2-465F-4E10-8DB2-2FB97AC6AA43} - Library - Properties - ImageProcessor.Web - ImageProcessor.Web - v4.0 - 512 - ..\..\ - true - - - true - full - false - bin\Debug\ - TRACE;DEBUG;USE_CSHARP_SQLITE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE;USE_CSHARP_SQLITE - prompt - 4 - - - true - bin\All\ - TRACE;DEBUG;USE_CSHARP_SQLITE - full - AnyCPU - prompt - - - - - False - ..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll - - - False - ..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll - - - False - ..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll - - - - - - - ..\..\packages\Microsoft.Bcl.1.1.9\lib\net40\System.IO.dll - True - - - - ..\..\packages\Microsoft.Bcl.1.1.9\lib\net40\System.Runtime.dll - - - - ..\..\packages\Microsoft.Bcl.1.1.9\lib\net40\System.Threading.Tasks.dll - - - - - - - - - CacheIndexer.cs - - - - MemCache.cs - - - - - - - DirectoryInfoExtensions.cs - - - ImageHelpers.cs - - - - ResourceHelpers.cs - - - - - - - - - {3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E} - ImageProcessor - - - - - Config\Resources\cache.config - - - Config\Resources\processing.config - - - Config\Resources\security.config - - - Designer - - - Designer - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ImageProcessor.Web/NET45/Extensions/DirectoryInfoExtensions.cs b/src/ImageProcessor.Web/NET45/Extensions/DirectoryInfoExtensions.cs deleted file mode 100644 index 07c47e522..000000000 --- a/src/ImageProcessor.Web/NET45/Extensions/DirectoryInfoExtensions.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Copyright (c) James South. -// Licensed under the Apache License, Version 2.0. -// -// -// Provides extension methods to the type. -// -// -------------------------------------------------------------------------------------------------------------------- - -namespace ImageProcessor.Web.Extensions -{ - using System.Collections.Generic; - using System.IO; - using System.Linq; - - /// - /// Provides extension methods to the type. - /// - public static class DirectoryInfoExtensions - { - /// - /// Returns an enumerable collection of directory information that matches a specified search pattern and search subdirectory option. - /// Will return an empty enumerable on exception. Quick and dirty but does what I need just now. - /// - /// - /// The that this method extends. - /// - /// - /// The search string to match against the names of directories. This parameter can contain a combination of valid literal path - /// and wildcard (* and ?) characters (see Remarks), but doesn't support regular expressions. The default pattern is "*", which returns all files. - /// - /// - /// One of the enumeration values that specifies whether the search operation should include only - /// the current directory or all subdirectories. The default value is TopDirectoryOnly. - /// - /// - /// An enumerable collection of directories that matches searchPattern and searchOption. - /// - public static IEnumerable SafeEnumerateDirectories(this DirectoryInfo directoryInfo, string searchPattern = "*", SearchOption searchOption = SearchOption.TopDirectoryOnly) - { - IEnumerable directories; - - try - { - directories = directoryInfo.EnumerateDirectories(searchPattern, searchOption); - } - catch - { - return Enumerable.Empty(); - } - - return directories; - } - } -} \ No newline at end of file