mirror of https://github.com/SixLabors/ImageSharp
Browse Source
We now default load default formats using reflection only for default configuration, not manual.pull/69/head
12 changed files with 89 additions and 177 deletions
@ -1,32 +0,0 @@ |
|||||
// <copyright file="ConfigurationExtensions.cs" company="James Jackson-South">
|
|
||||
// Copyright (c) James Jackson-South and contributors.
|
|
||||
// Licensed under the Apache License, Version 2.0.
|
|
||||
// </copyright>
|
|
||||
|
|
||||
namespace ImageSharp |
|
||||
{ |
|
||||
using System; |
|
||||
using System.IO; |
|
||||
|
|
||||
using Formats; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Extension methods for the <see cref="Configuration"/> type.
|
|
||||
/// </summary>
|
|
||||
public static partial class ConfigurationExtensions |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Adds the common formats, PNG, JPEG, GIF and BMP.
|
|
||||
/// </summary>
|
|
||||
/// <param name="config">The config.</param>
|
|
||||
/// <returns>The config</returns>
|
|
||||
public static Configuration AddCommonFormats(this Configuration config) |
|
||||
{ |
|
||||
return config |
|
||||
.AddPngFormat() |
|
||||
.AddJpegFormat() |
|
||||
.AddGifFormat() |
|
||||
.AddBmpFormat(); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,25 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
||||
<PropertyGroup> |
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> |
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> |
|
||||
</PropertyGroup> |
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> |
|
||||
<PropertyGroup Label="Globals"> |
|
||||
<ProjectGuid>c72b8906-260a-4688-9b7a-5cd4bdf419ec</ProjectGuid> |
|
||||
<RootNamespace>ImageSharp.Formats</RootNamespace> |
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> |
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> |
|
||||
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion> |
|
||||
</PropertyGroup> |
|
||||
<PropertyGroup> |
|
||||
<SchemaVersion>2.0</SchemaVersion> |
|
||||
</PropertyGroup> |
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
|
||||
<ProduceOutputsOnBuild>True</ProduceOutputsOnBuild> |
|
||||
</PropertyGroup> |
|
||||
<ItemGroup> |
|
||||
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" /> |
|
||||
</ItemGroup> |
|
||||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> |
|
||||
</Project> |
|
||||
@ -1,6 +0,0 @@ |
|||||
// <copyright file="AssemblyInfo.cs" company="James Jackson-South">
|
|
||||
// Copyright (c) James Jackson-South and contributors.
|
|
||||
// Licensed under the Apache License, Version 2.0.
|
|
||||
// </copyright>
|
|
||||
|
|
||||
// Common values read from `AssemblyInfo.Common.cs`
|
|
||||
@ -1,76 +0,0 @@ |
|||||
{ |
|
||||
"version": "1.0.0-alpha1-*", |
|
||||
"title": "ImageSharp.Formats", |
|
||||
"description": "A cross-platform library for the processing of image files; written in C#", |
|
||||
"authors": [ |
|
||||
"James Jackson-South and contributors" |
|
||||
], |
|
||||
"packOptions": { |
|
||||
"owners": [ |
|
||||
"James Jackson-South and contributors" |
|
||||
], |
|
||||
"projectUrl": "https://github.com/JimBobSquarePants/ImageSharp", |
|
||||
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0", |
|
||||
"iconUrl": "https://raw.githubusercontent.com/JimBobSquarePants/ImageSharp/master/build/icons/imagesharp-logo-128.png", |
|
||||
"requireLicenseAcceptance": false, |
|
||||
"repository": { |
|
||||
"type": "git", |
|
||||
"url": "https://github.com/JimBobSquarePants/ImageSharp" |
|
||||
}, |
|
||||
"tags": [ |
|
||||
"Image Resize Crop Gif Jpg Jpeg Bitmap Png Core" |
|
||||
] |
|
||||
}, |
|
||||
"buildOptions": { |
|
||||
"allowUnsafe": true, |
|
||||
"xmlDoc": true, |
|
||||
"additionalArguments": [ "/additionalfile:stylecop.json", "/ruleset:../../ImageSharp.ruleset" ], |
|
||||
"compile": [ |
|
||||
"../Shared/*.cs" |
|
||||
] |
|
||||
}, |
|
||||
"configurations": { |
|
||||
"Release": { |
|
||||
"buildOptions": { |
|
||||
"warningsAsErrors": true, |
|
||||
"optimize": true |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
"dependencies": { |
|
||||
"ImageSharp": { |
|
||||
"target": "project", |
|
||||
"version": "1.0.0-*" |
|
||||
}, |
|
||||
"ImageSharp.Formats.Png": { |
|
||||
"target": "project", |
|
||||
"version": "1.0.0-*" |
|
||||
}, |
|
||||
"ImageSharp.Formats.Bmp": { |
|
||||
"target": "project", |
|
||||
"version": "1.0.0-*" |
|
||||
}, |
|
||||
"ImageSharp.Formats.Jpeg": { |
|
||||
"target": "project", |
|
||||
"version": "1.0.0-*" |
|
||||
}, |
|
||||
"ImageSharp.Formats.Gif": { |
|
||||
"target": "project", |
|
||||
"version": "1.0.0-*" |
|
||||
}, |
|
||||
"StyleCop.Analyzers": { |
|
||||
"version": "1.1.0-beta001", |
|
||||
"type": "build" |
|
||||
} |
|
||||
}, |
|
||||
"frameworks": { |
|
||||
"netstandard1.1": { |
|
||||
"dependencies": { |
|
||||
} |
|
||||
}, |
|
||||
"net45": { |
|
||||
"dependencies": { |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,9 +0,0 @@ |
|||||
{ |
|
||||
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", |
|
||||
"settings": { |
|
||||
"documentationRules": { |
|
||||
"companyName": "James Jackson-South", |
|
||||
"copyrightText": "Copyright (c) James Jackson-South and contributors.\nLicensed under the Apache License, Version 2.0." |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue