Skip to content

Commit

Permalink
convert to new VS project style + add multiple targetFrameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
dampee committed Nov 7, 2018
1 parent 17a3120 commit d19141f
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 155 deletions.
116 changes: 24 additions & 92 deletions ImageProcessor.Plugins.Pdf.csproj
@@ -1,104 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ImageProcessor.Plugins.Pdf</RootNamespace>
<AssemblyName>ImageProcessor.Plugins.Pdf</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release45|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<OutputPath>bin\Release\net45\</OutputPath>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<DocumentationFile>bin\Release\net45\ImageProcessor.Plugins.Pdf.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release461|AnyCPU'">
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<OutputPath>bin\Release\net461\</OutputPath>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<DocumentationFile>bin\Release\net461\ImageProcessor.Plugins.Pdf.xml</DocumentationFile>
<TargetFrameworks>net45;net46;net47</TargetFrameworks>
<AssemblyTitle>ImageProcessor.Plugins.Pdf</AssemblyTitle>
<Product>ImageProcessor.Plugins.Pdf</Product>
<Description>A plugin for ImageProcessor adding PDF as a recognized input format. This allows you to easily show thumbnails from PDF's.</Description>
<Copyright>Copyright 2017</Copyright>
<Version>1.3.0</Version>
<Authors>Damiaan Peeters, Tom van Enckevort</Authors>
<PackageId>ImageProcessor.Plugins.PDF</PackageId>
<PackageLicenseUrl>https://github.com/dampee/ImageProcessor.Plugins.Pdf/blob/master/LICENSE</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/dampee/ImageProcessor.Plugins.Pdf</PackageProjectUrl>
<PackageReleaseNotes>Pdfs are rendered as image, when a PDF has multiple pages, only the first is shown.</PackageReleaseNotes>
<PackageTags>ImageProcessor Plugin PDF Fileformat convert GhostScript thumbnail PDFs</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Company />
<RepositoryUrl>https://github.com/dampee/ImageProcessor.Plugins.Pdf</RepositoryUrl>
<RepositoryType>GitHub</RepositoryType>
</PropertyGroup>
<ItemGroup>
<Reference Include="Ghostscript.NET, Version=1.2.1.0, Culture=neutral, PublicKeyToken=f85051de34525b59, processorArchitecture=MSIL">
<HintPath>packages\Ghostscript.NET.1.2.1\lib\net40\Ghostscript.NET.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ImageProcessor, Version=2.5.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\ImageProcessor.2.5.0\lib\net45\ImageProcessor.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xml.Linq" />
<PackageReference Include="Ghostscript.NET" Version="1.2.1" />
<PackageReference Include="ImageProcessor" Version="2.5.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="PdfFormat.cs" />
<Compile Include="PdfRasterizer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<None Include="README.md" />
</ItemGroup>
<ItemGroup>
<None Include="ImageProcessor.Plugins.Pdf.nuspec">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
<None Include="README.md" />
<None Remove=".gitignore" />
<None Remove="build.cmd" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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>
-->
<Target Name="AfterBuild">
<!-- Load up the information from the assembly -->
<GetAssemblyIdentity AssemblyFiles="$(OutputPath)$(AssemblyName).dll">
<Output TaskParameter="Assemblies" ItemName="OutputAssemblyInfo" />
</GetAssemblyIdentity>
<Message Text="Info: %(OutputAssemblyInfo.Version)" />
</Target>
<Target Name="Package">
<!-- Ensure the Package directory exists for this project -->
<RemoveDir Directories="NuGet" />
<MakeDir Directories="NuGet" />
<!-- Package the project -->
<Exec WorkingDirectory="$(BuildDir)" Command="NuGet.exe pack -Verbosity detailed -Symbols -OutputDir &quot;NuGet&quot; -Version %(OutputAssemblyInfo.Version) -Properties &quot;Configuration=$(Configuration)&quot;" />
</Target>
<Target Name="Publish">
<!-- Publish the nupkg to the server by simply copying it to the correct location. -->
<!-- <Copy SourceFiles="$(PackageDir)\$(AssemblyName).%(OutputAssemblyInfo.Version).nupkg;$(PackageDir)\$(AssemblyName).%(OutputAssemblyInfo.Version).symbols.nupkg" DestinationFolder="nuget\package" /> -->
</Target>
</Project>
25 changes: 0 additions & 25 deletions ImageProcessor.Plugins.Pdf.nuspec

This file was deleted.

14 changes: 7 additions & 7 deletions ImageProcessor.Plugins.Pdf.sln
Expand Up @@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26403.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageProcessor.Plugins.Pdf", "ImageProcessor.Plugins.Pdf.csproj", "{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ImageProcessor.Plugins.Pdf", "ImageProcessor.Plugins.Pdf.csproj", "{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release45|Any CPU = Release45|Any CPU
Release461|Any CPU = Release461|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Release45|Any CPU.ActiveCfg = Release45|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Release45|Any CPU.Build.0 = Release45|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Release461|Any CPU.ActiveCfg = Release461|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Release461|Any CPU.Build.0 = Release461|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1CFB1BC1-86B3-415A-9D26-973C5F84FA07}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D43ABF6A-2450-4CD7-9FCA-0E5A228929FC}
EndGlobalSection
EndGlobal
27 changes: 1 addition & 26 deletions Properties/AssemblyInfo.cs
@@ -1,36 +1,11 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ImageProcessor.Plugins.Pdf")]
[assembly: AssemblyDescription("A plugin for ImageProcessor adding PDF as a recognized fileformat")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ImageProcessor.Plugins.Pdf")]
[assembly: AssemblyCopyright("Copyright © Damiaan Peeters 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ecb0f4b0-0e24-4ca5-8bdf-a6de25f59171")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.1")]
[assembly: AssemblyFileVersion("1.0.0.0")]
5 changes: 0 additions & 5 deletions packages.config

This file was deleted.

0 comments on commit d19141f

Please sign in to comment.