mirror of https://github.com/SixLabors/ImageSharp
2 changed files with 0 additions and 202 deletions
@ -1,146 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
|||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
|||
<ProductVersion>8.0.30703</ProductVersion> |
|||
<SchemaVersion>2.0</SchemaVersion> |
|||
<ProjectGuid>{4F7050F2-465F-4E10-8DB2-2FB97AC6AA43}</ProjectGuid> |
|||
<OutputType>Library</OutputType> |
|||
<AppDesignerFolder>Properties</AppDesignerFolder> |
|||
<RootNamespace>ImageProcessor.Web</RootNamespace> |
|||
<AssemblyName>ImageProcessor.Web</AssemblyName> |
|||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> |
|||
<FileAlignment>512</FileAlignment> |
|||
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> |
|||
<RestorePackages>true</RestorePackages> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<DebugType>full</DebugType> |
|||
<Optimize>false</Optimize> |
|||
<OutputPath>bin\Debug\</OutputPath> |
|||
<DefineConstants>TRACE;DEBUG;USE_CSHARP_SQLITE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
|||
<DebugType>pdbonly</DebugType> |
|||
<Optimize>true</Optimize> |
|||
<OutputPath>bin\Release\</OutputPath> |
|||
<DefineConstants>TRACE;USE_CSHARP_SQLITE</DefineConstants> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
<WarningLevel>4</WarningLevel> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'All|AnyCPU'"> |
|||
<DebugSymbols>true</DebugSymbols> |
|||
<OutputPath>bin\All\</OutputPath> |
|||
<DefineConstants>TRACE;DEBUG;USE_CSHARP_SQLITE</DefineConstants> |
|||
<DebugType>full</DebugType> |
|||
<PlatformTarget>AnyCPU</PlatformTarget> |
|||
<ErrorReport>prompt</ErrorReport> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Reference Include="Microsoft.CSharp" /> |
|||
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
|||
<SpecificVersion>False</SpecificVersion> |
|||
<HintPath>..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="Microsoft.Threading.Tasks.Extensions, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
|||
<SpecificVersion>False</SpecificVersion> |
|||
<HintPath>..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.168.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> |
|||
<SpecificVersion>False</SpecificVersion> |
|||
<HintPath>..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="System" /> |
|||
<Reference Include="System.Configuration" /> |
|||
<Reference Include="System.Core" /> |
|||
<Reference Include="System.Drawing" /> |
|||
<Reference Include="System.IO"> |
|||
<HintPath>..\..\packages\Microsoft.Bcl.1.1.9\lib\net40\System.IO.dll</HintPath> |
|||
<Private>True</Private> |
|||
</Reference> |
|||
<Reference Include="System.Net" /> |
|||
<Reference Include="System.Runtime"> |
|||
<HintPath>..\..\packages\Microsoft.Bcl.1.1.9\lib\net40\System.Runtime.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="System.Runtime.Caching" /> |
|||
<Reference Include="System.Threading.Tasks"> |
|||
<HintPath>..\..\packages\Microsoft.Bcl.1.1.9\lib\net40\System.Threading.Tasks.dll</HintPath> |
|||
</Reference> |
|||
<Reference Include="System.Web" /> |
|||
<Reference Include="System.Data" /> |
|||
<Reference Include="System.XML" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<Compile Include="..\NET45\Caching\CachedImage.cs" /> |
|||
<Compile Include="..\NET45\Caching\CacheIndexer.cs"> |
|||
<Link>CacheIndexer.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\NET45\Caching\DiskCache.cs" /> |
|||
<Compile Include="..\NET45\Caching\MemCache.cs"> |
|||
<Link>MemCache.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\NET45\Config\ImageCacheSection.cs" /> |
|||
<Compile Include="..\NET45\Config\ImageProcessingSection.cs" /> |
|||
<Compile Include="..\NET45\Config\ImageProcessorConfig.cs" /> |
|||
<Compile Include="..\NET45\Config\ImageSecuritySection.cs" /> |
|||
<Compile Include="..\NET45\Extensions\DirectoryInfoExtensions.cs"> |
|||
<Link>DirectoryInfoExtensions.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\NET45\Helpers\ImageHelpers.cs"> |
|||
<Link>ImageHelpers.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\NET45\Helpers\RemoteFile.cs" /> |
|||
<Compile Include="..\NET45\Helpers\ResourceHelpers.cs"> |
|||
<Link>ResourceHelpers.cs</Link> |
|||
</Compile> |
|||
<Compile Include="..\NET45\Helpers\TaskHelpers.cs" /> |
|||
<Compile Include="..\NET45\HttpModules\ImageProcessingModule.cs" /> |
|||
<Compile Include="..\NET45\ImageFactoryExtensions.cs" /> |
|||
<Compile Include="..\NET45\Properties\AssemblyInfo.cs" /> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\ImageProcessor\ImageProcessor.csproj"> |
|||
<Project>{3B5DD734-FB7A-487D-8CE6-55E7AF9AEA7E}</Project> |
|||
<Name>ImageProcessor</Name> |
|||
</ProjectReference> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<EmbeddedResource Include="..\NET45\Config\Resources\cache.config"> |
|||
<Link>Config\Resources\cache.config</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\NET45\Config\Resources\processing.config"> |
|||
<Link>Config\Resources\processing.config</Link> |
|||
</EmbeddedResource> |
|||
<EmbeddedResource Include="..\NET45\Config\Resources\security.config"> |
|||
<Link>Config\Resources\security.config</Link> |
|||
</EmbeddedResource> |
|||
<None Include="app.config"> |
|||
<SubType>Designer</SubType> |
|||
</None> |
|||
<None Include="packages.config"> |
|||
<SubType>Designer</SubType> |
|||
</None> |
|||
</ItemGroup> |
|||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
|||
<PropertyGroup> |
|||
<PostBuildEvent> |
|||
</PostBuildEvent> |
|||
</PropertyGroup> |
|||
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" /> |
|||
<Import Project="..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets" Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" /> |
|||
<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''"> |
|||
<Error Condition="!Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567." HelpKeyword="BCLBUILD2001" /> |
|||
<Error Condition="Exists('..\..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" /> |
|||
</Target> |
|||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
|||
Other similar extension points exist, see Microsoft.Common.targets. |
|||
<Target Name="BeforeBuild"> |
|||
</Target> |
|||
<Target Name="AfterBuild"> |
|||
</Target> |
|||
--> |
|||
</Project> |
|||
@ -1,56 +0,0 @@ |
|||
// --------------------------------------------------------------------------------------------------------------------
|
|||
// <copyright file="DirectoryInfoExtensions.cs" company="James South">
|
|||
// Copyright (c) James South.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
// <summary>
|
|||
// Provides extension methods to the <see cref="System.IO.DirectoryInfo" /> type.
|
|||
// </summary>
|
|||
// --------------------------------------------------------------------------------------------------------------------
|
|||
|
|||
namespace ImageProcessor.Web.Extensions |
|||
{ |
|||
using System.Collections.Generic; |
|||
using System.IO; |
|||
using System.Linq; |
|||
|
|||
/// <summary>
|
|||
/// Provides extension methods to the <see cref="System.IO.DirectoryInfo"/> type.
|
|||
/// </summary>
|
|||
public static class DirectoryInfoExtensions |
|||
{ |
|||
/// <summary>
|
|||
/// 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.
|
|||
/// </summary>
|
|||
/// <param name="directoryInfo">
|
|||
/// The <see cref="System.IO.DirectoryInfo"/> that this method extends.
|
|||
/// </param>
|
|||
/// <param name="searchPattern">
|
|||
/// 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.
|
|||
/// </param>
|
|||
/// <param name="searchOption">
|
|||
/// 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.
|
|||
/// </param>
|
|||
/// <returns>
|
|||
/// An enumerable collection of directories that matches searchPattern and searchOption.
|
|||
/// </returns>
|
|||
public static IEnumerable<DirectoryInfo> SafeEnumerateDirectories(this DirectoryInfo directoryInfo, string searchPattern = "*", SearchOption searchOption = SearchOption.TopDirectoryOnly) |
|||
{ |
|||
IEnumerable<DirectoryInfo> directories; |
|||
|
|||
try |
|||
{ |
|||
directories = directoryInfo.EnumerateDirectories(searchPattern, searchOption); |
|||
} |
|||
catch |
|||
{ |
|||
return Enumerable.Empty<DirectoryInfo>(); |
|||
} |
|||
|
|||
return directories; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue