Browse Source

Making project build on Mono

Former-commit-id: 234b00edb21fd70133fb1e74f7ac59d1f96db275
pull/17/head
James South 12 years ago
parent
commit
7f077fce37
  1. 1
      src/ImageProcessor/ImageProcessor.csproj
  2. 4
      src/ImageProcessor/Imaging/Formats/FormatBase.cs

1
src/ImageProcessor/ImageProcessor.csproj

@ -13,6 +13,7 @@
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<UseMSBuildEngine>False</UseMSBuildEngine>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

4
src/ImageProcessor/Imaging/Formats/FormatBase.cs

@ -90,7 +90,11 @@ namespace ImageProcessor.Imaging.Formats
/// </returns>
public virtual Image Load(Stream stream)
{
#if !__MonoCS__
return Image.FromStream(stream, true);
#else
return Image.FromStream(stream);
#endif
}
/// <summary>

Loading…
Cancel
Save