forked from OpenXmlDev/Open-Xml-PowerTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AddTypes.ps1
70 lines (60 loc) · 3.55 KB
/
AddTypes.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<#***************************************************************************
Copyright (c) Microsoft Corporation 2014.
This code is licensed using the Microsoft Public License (Ms-PL). The text of the license can be found here:
http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx
Published at http://OpenXmlDeveloper.org
Resource Center and Documentation: http://openxmldeveloper.org/wiki/w/wiki/powertools-for-open-xml.aspx
Developer: Eric White
Blog: http://www.ericwhite.com
Twitter: @EricWhiteDev
Email: [email protected]
Version: 3.0.0
***************************************************************************#>
$assemblies = (
"$PSScriptRoot\..\Open-Xml-Sdk\DocumentFormat.OpenXml\bin\debug\DocumentFormat.OpenXml.dll",
"$PSScriptRoot\..\Open-Xml-Sdk\DocumentFormat.OpenXml\bin\debug\System.IO.Packaging.dll",
"System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
"System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
)
$sources = @(
"$PSScriptRoot\OpenXmlPowerTools\DocumentAssembler.cs",
"$PSScriptRoot\OpenXmlPowerTools\DocumentBuilder.cs",
"$PSScriptRoot\OpenXmlPowerTools\ExcelFormula.cs",
"$PSScriptRoot\OpenXmlPowerTools\FieldRetriever.cs",
"$PSScriptRoot\OpenXmlPowerTools\FormattingAssembler.cs",
"$PSScriptRoot\OpenXmlPowerTools\GetListItemText_Default.cs",
"$PSScriptRoot\OpenXmlPowerTools\GetListItemText_fr_FR.cs",
"$PSScriptRoot\OpenXmlPowerTools\GetListItemText_ru_RU.cs",
"$PSScriptRoot\OpenXmlPowerTools\GetListItemText_sv_SE.cs",
"$PSScriptRoot\OpenXmlPowerTools\GetListItemText_tr_TR.cs",
"$PSScriptRoot\OpenXmlPowerTools\GetListItemText_zh_CN.cs",
"$PSScriptRoot\OpenXmlPowerTools\WmlToHtmlConverter.cs",
"$PSScriptRoot\OpenXmlPowerTools\ListItemRetriever.cs",
"$PSScriptRoot\OpenXmlPowerTools\MarkupSimplifier.cs",
"$PSScriptRoot\OpenXmlPowerTools\MetricsGetter.cs",
"$PSScriptRoot\OpenXmlPowerTools\OpenXmlRegex.cs",
"$PSScriptRoot\OpenXmlPowerTools\OxPtHelpers.cs",
"$PSScriptRoot\OpenXmlPowerTools\PegBase.cs",
"$PSScriptRoot\OpenXmlPowerTools\PresentationBuilder.cs",
"$PSScriptRoot\OpenXmlPowerTools\PtOpenXmlDocument.cs",
"$PSScriptRoot\OpenXmlPowerTools\PtOpenXmlUtil.cs",
"$PSScriptRoot\OpenXmlPowerTools\PtUtil.cs",
"$PSScriptRoot\OpenXmlPowerTools\ReferenceAdder.cs",
"$PSScriptRoot\OpenXmlPowerTools\RevisionAccepter.cs",
"$PSScriptRoot\OpenXmlPowerTools\SSFormula.cs",
"$PSScriptRoot\OpenXmlPowerTools\SpreadsheetWriter.cs",
"$PSScriptRoot\OpenXmlPowerTools\TextReplacer.cs",
"$PSScriptRoot\OpenXmlPowerTools\WmlDocument.cs",
"$PSScriptRoot\OpenXmlPowerTools\WorksheetAccessor.cs",
"$PSScriptRoot\OpenXmlPowerTools\XlsxTables.cs",
"$PSScriptRoot\OpenXmlPowerTools\OpenXmlCmdlet.cs",
"$PSScriptRoot\OpenXmlPowerTools\SpreadsheetDocumentManager.cs",
"$PSScriptRoot\OpenXmlPowerTools\OutXlsxCmdlet.cs",
"$PSScriptRoot\OpenXmlPowerTools\ScalarTypes.cs"
)
Add-Type -Path "$PSScriptRoot\..\Open-Xml-Sdk\DocumentFormat.OpenXml\bin\debug\DocumentFormat.OpenXml.dll"
Add-Type -Path "$PSScriptRoot\..\Open-Xml-Sdk\DocumentFormat.OpenXml\bin\debug\System.IO.Packaging.dll"
Add-Type -ReferencedAssemblies $assemblies -Path $sources -OutputAssembly "$PSScriptRoot\OpenXmlPowerTools.dll"