Skip to content

Commit b20bcd6

Browse files
committed
iTextSharp paketized
1 parent 7a37a5a commit b20bcd6

File tree

6 files changed

+22
-7
lines changed

6 files changed

+22
-7
lines changed

paket.dependencies

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ group Build
88
nuget SourceLink.Fake
99
nuget FAKE
1010
nuget FSharp.Formatting
11+
nuget RedGate.iTextSharp
1112

1213
github fsharp/FAKE modules/Octokit/Octokit.fsx
1314

paket.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NUGET
55
GROUP Build
66
NUGET
77
remote: https://www.nuget.org/api/v2
8-
FAKE (4.47.1)
8+
FAKE (4.47.4)
99
FSharp.Compiler.Service (2.0.0.6)
1010
FSharp.Formatting (2.14.4)
1111
FSharp.Compiler.Service (2.0.0.6)
@@ -20,10 +20,11 @@ NUGET
2020
Microsoft.Bcl.Build (>= 1.0.14)
2121
Octokit (0.23)
2222
Microsoft.Net.Http - framework: net10, net11, net20, net30, net35, net40, net40-full
23+
RedGate.iTextSharp (4.1.6.16)
2324
SourceLink.Fake (1.1)
2425
GITHUB
2526
remote: fsharp/FAKE
26-
modules/Octokit/Octokit.fsx (4f838ccbf9aa304811c9bb0e7a1e03a6dd0b41f0)
27+
modules/Octokit/Octokit.fsx (9fc7ccbc70507354c37e10e6876a89986fb3fe9d)
2728
Octokit (>= 0.20)
2829
GROUP Test
2930
NUGET
-3.12 MB
Binary file not shown.

src/UseCaseMakerApp/RTFConverter.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using iTextSharp.text;
1212
using iTextSharp.text.rtf;
1313
using iTextSharp.text.xml;
14+
using iTextSharp.text.rtf.headerfooter;
1415

1516
namespace UseCaseMaker
1617
{
@@ -153,15 +154,15 @@ public void XmlToRtf(string xmlDoc, string strFilename)
153154
RtfWriter2 writer = RtfWriter2.GetInstance(document, ms);
154155

155156
footerPhrase = new Phrase("",new iTextSharp.text.Font(iTextSharp.text.Font.HELVETICA,8));
156-
RtfHeaderFooter footer = new RtfHeaderFooter(footerPhrase,true);
157+
RtfHeaderFooter footer = new RtfHeaderFooter(footerPhrase);
157158
footer.SetAlignment("center");
158159
writer.Footer = footer;
159160

160161
AssemblyName an = this.GetType().Assembly.GetName();
161162
headerPhrase = new Phrase(
162163
"Use Case Maker " + an.Version.ToString(3),
163164
new iTextSharp.text.Font(iTextSharp.text.Font.HELVETICA,8));
164-
RtfHeaderFooter header = new RtfHeaderFooter(headerPhrase,false);
165+
RtfHeaderFooter header = new RtfHeaderFooter(headerPhrase);
165166
header.SetAlignment("right");
166167
writer.Header = header;
167168

src/UseCaseMakerApp/UseCaseMakerApp.csproj

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
117117
</PropertyGroup>
118118
<ItemGroup>
119-
<Reference Include="itextsharp, Version=4.0.4.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca, processorArchitecture=MSIL" />
120119
<Reference Include="System">
121120
<Name>System</Name>
122121
</Reference>
@@ -146,7 +145,6 @@
146145
</ItemGroup>
147146
<ItemGroup>
148147
<Content Include="App.ico" />
149-
<Content Include="External Libraries\itextsharp.dll" />
150148
<Content Include="External Libraries\WeifenLuo.WinFormsUI.Docking.dll" />
151149
<Content Include="Icons\Actor.ico" />
152150
<Content Include="Icons\Actors.ico" />
@@ -346,8 +344,9 @@
346344
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
347345
</EmbeddedResource>
348346
<None Include="app.config" />
347+
<None Include="paket.references" />
349348
<None Include="Properties\app.manifest" />
350-
<None Include="UseCaseMaker.config" />
349+
<None Include="UseCaseMakerApp.config" />
351350
</ItemGroup>
352351
<ItemGroup>
353352
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
@@ -420,4 +419,15 @@
420419
<PostBuildEvent>
421420
</PostBuildEvent>
422421
</PropertyGroup>
422+
<Choose>
423+
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.0' Or $(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2' Or $(TargetFrameworkVersion) == 'v4.6.3')">
424+
<ItemGroup>
425+
<Reference Include="itextsharp">
426+
<HintPath>..\..\packages\build\RedGate.iTextSharp\lib\net40\itextsharp.dll</HintPath>
427+
<Private>True</Private>
428+
<Paket>True</Paket>
429+
</Reference>
430+
</ItemGroup>
431+
</When>
432+
</Choose>
423433
</Project>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
group Build
2+
RedGate.iTextSharp

0 commit comments

Comments
 (0)