Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created TuesPechkin.Wkhtmltox.AnyCPU. #90

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TuesPechkin.TestFormsApp/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public partial class MainForm : Form
private IConverter converter =
new StandardConverter(
new PdfToolset(
new Win64EmbeddedDeployment(
new WinAnyCPUEmbeddedDeployment(
new TempFolderDeployment())));

private HtmlToPdfDocument Document = new HtmlToPdfDocument
Expand Down
24 changes: 21 additions & 3 deletions TuesPechkin.TestFormsApp/TuesPechkin.TestFormsApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Drawing" />
Expand Down Expand Up @@ -76,9 +94,9 @@
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TuesPechkin.Wkhtmltox.Win64\TuesPechkin.Wkhtmltox.Win64.csproj">
<Project>{f77cffca-1cf0-49c8-98b6-5c6009c6be63}</Project>
<Name>TuesPechkin.Wkhtmltox.Win64</Name>
<ProjectReference Include="..\TuesPechkin.Wkhtmltox.AnyCPU\TuesPechkin.Wkhtmltox.AnyCPU.csproj">
<Project>{7c1323c7-0c5b-4686-b1e5-51502e11cccb}</Project>
<Name>TuesPechkin.Wkhtmltox.AnyCPU</Name>
</ProjectReference>
<ProjectReference Include="..\TuesPechkin\TuesPechkin.csproj">
<Project>{023DF833-B252-48B3-B6AF-DBBB13E39B13}</Project>
Expand Down
4 changes: 2 additions & 2 deletions TuesPechkin.TestWebApp/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class HomeController : Controller
private static IConverter converter =
new ThreadSafeConverter(
new RemotingToolset<PdfToolset>(
new Win32EmbeddedDeployment(
new WinAnyCPUEmbeddedDeployment(
new TempFolderDeployment())));

private static IConverter anotherConverter =
Expand All @@ -32,7 +32,7 @@ public class HomeController : Controller
private static IConverter imageConverter =
new ThreadSafeConverter(
new RemotingToolset<ImageToolset>(
new Win32EmbeddedDeployment(
new WinAnyCPUEmbeddedDeployment(
new TempFolderDeployment())));

// GET: /Home/
Expand Down
26 changes: 23 additions & 3 deletions TuesPechkin.TestWebApp/TuesPechkin.TestWebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<TargetFrameworkProfile />
<IISExpressSSLPort />
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
Expand Down Expand Up @@ -215,9 +216,9 @@
<Content Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TuesPechkin.Wkhtmltox.Win32\TuesPechkin.Wkhtmltox.Win32.csproj">
<Project>{1bcd70ef-32ef-4339-9ccf-ea07415a39a9}</Project>
<Name>TuesPechkin.Wkhtmltox.Win32</Name>
<ProjectReference Include="..\TuesPechkin.Wkhtmltox.AnyCPU\TuesPechkin.Wkhtmltox.AnyCPU.csproj">
<Project>{7c1323c7-0c5b-4686-b1e5-51502e11cccb}</Project>
<Name>TuesPechkin.Wkhtmltox.AnyCPU</Name>
</ProjectReference>
<ProjectReference Include="..\TuesPechkin\TuesPechkin.csproj">
<Project>{023df833-b252-48b3-b6af-dbbb13e39b13}</Project>
Expand Down Expand Up @@ -247,6 +248,25 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
Expand Down
2 changes: 1 addition & 1 deletion TuesPechkin.Tests/GeneralTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void UnloadsWkhtmltoxWhenAppDomainUnloads()
var converter =
new ThreadSafeConverter(
new RemotingToolset<PdfToolset>(
new Win32EmbeddedDeployment(
new WinAnyCPUEmbeddedDeployment(
new StaticDeployment(Path.GetTempPath()))));

var document = new HtmlToPdfDocument("<p>some html</p>");
Expand Down
24 changes: 21 additions & 3 deletions TuesPechkin.Tests/TuesPechkin.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,24 @@
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System" />
Expand All @@ -55,9 +73,9 @@
<EmbeddedResource Include="Resources\page.html" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\TuesPechkin.Wkhtmltox.Win32\TuesPechkin.Wkhtmltox.Win32.csproj">
<Project>{1bcd70ef-32ef-4339-9ccf-ea07415a39a9}</Project>
<Name>TuesPechkin.Wkhtmltox.Win32</Name>
<ProjectReference Include="..\TuesPechkin.Wkhtmltox.AnyCPU\TuesPechkin.Wkhtmltox.AnyCPU.csproj">
<Project>{7c1323c7-0c5b-4686-b1e5-51502e11cccb}</Project>
<Name>TuesPechkin.Wkhtmltox.AnyCPU</Name>
</ProjectReference>
<ProjectReference Include="..\TuesPechkin\TuesPechkin.csproj">
<Project>{023df833-b252-48b3-b6af-dbbb13e39b13}</Project>
Expand Down
36 changes: 36 additions & 0 deletions TuesPechkin.Wkhtmltox.AnyCPU/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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("TuesPechkin.Wkhtmltox.AnyCPU")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TuesPechkin.Wkhtmltox.AnyCPU")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("215752e5-543a-4f72-b1f7-af3ab9a948e4")]

// 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.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
83 changes: 83 additions & 0 deletions TuesPechkin.Wkhtmltox.AnyCPU/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading