Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f76d82

Browse files
author
ArthurHub
committed
build stuff
1 parent eaa6d4a commit 9f76d82

11 files changed

+174
-94
lines changed

Build/0 full.bat

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
@echo off
2+
3+
CD %~dp0
4+
5+
6+
echo.
7+
echo.
8+
echo - DELETE RELEASE FOLDER..
9+
rmdir Release /s /q
10+
11+
echo.
12+
echo.
13+
echo - RUN LIBS BUILD...
14+
echo.
15+
CALL "1 build libs.bat"
16+
17+
echo.
18+
echo.
19+
echo - RUN DEMO BUILD...
20+
echo.
21+
CALL "2 build demo.bat"
22+
23+
echo.
24+
echo.
25+
set /p ask=- Builds complete, continue? (y/n)
26+
if %ask%==n goto end
27+
28+
echo.
29+
echo.
30+
echo - RUN ARCHIVE...
31+
echo.
32+
CALL "3 archive.bat"
33+
34+
echo.
35+
echo.
36+
echo - RUN NUGET PACK...
37+
echo.
38+
CALL "4 pack nuget.bat"
39+
40+
41+
echo.
42+
echo.
43+
echo - REMOVE FILES...
44+
rmdir Release\Source /s /q
45+
rmdir Release\Core /s /q
46+
rmdir Release\WinForms /s /q
47+
rmdir Release\WPF /s /q
48+
rmdir Release\Mono /s /q
49+
rmdir Release\PdfSharp /s /q
50+
del "Release\*.exe"
51+
52+
53+
:end
54+
echo.
55+
echo.
56+
echo - FINISHED
57+
pause

Build/build.bat renamed to Build/1 build libs.bat

Lines changed: 21 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,10 @@
22

33
CD %~dp0
44

5-
echo Run MSBuild...
6-
7-
echo Delete previous folder..
8-
rmdir Release /s /q
9-
10-
echo Get version...
11-
for /f %%i in ('getVer.exe ..\Source\SharedAssemblyInfo.cs') do set version=%%i
12-
echo Version: %version%
13-
145
echo Set params...
156
set verb=/verbosity:minimal
167

178
set msbuild=C:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe
18-
set git="C:\Program Files (x86)\Git\bin\git.exe"
199

2010
set c_proj=..\Source\HtmlRenderer\HtmlRenderer.csproj
2111
set wf_proj=..\Source\HtmlRenderer.WinForms\HtmlRenderer.WinForms.csproj
@@ -46,16 +36,20 @@ set t_mono_40=%t_40%;DefineConstants=MONO
4636
set t_mono_45=%t_45%;DefineConstants=MONO
4737

4838

49-
echo -
50-
echo --
51-
echo --- Run Core builds...
39+
echo.
40+
echo.
41+
echo - BUILD Core...
42+
echo.
5243
%msbuild% %c_proj% /t:rebuild /p:%t_20%;OutputPath=%c_out%\NET20 %verb%
5344
%msbuild% %c_proj% /t:rebuild /p:%t_30%;OutputPath=%c_out%\NET30 %verb%
5445
%msbuild% %c_proj% /t:rebuild /p:%t_35%;OutputPath=%c_out%\NET35 %verb%
5546
%msbuild% %c_proj% /t:rebuild /p:%t_40%;OutputPath=%c_out%\NET40 %verb%
5647
%msbuild% %c_proj% /t:rebuild /p:%t_45%;OutputPath=%c_out%\NET45 %verb%
5748

58-
echo Run WinForms builds...
49+
echo.
50+
echo.
51+
echo - BUILD WinForms...
52+
echo.
5953
%msbuild% %wf_proj% /t:rebuild /p:%t_20%;OutputPath=%wf_out%_t\NET20 %verb%
6054
%msbuild% %wf_proj% /t:rebuild /p:%t_35%;OutputPath=%wf_out%_t\NET35 %verb%
6155
%msbuild% %wf_proj% /t:rebuild /p:%t_40%;OutputPath=%wf_out%_t\NET40 %verb%
@@ -66,7 +60,10 @@ xcopy %wf_rel%_t\NET40\HtmlRenderer.WinForms.* %wf_rel%\NET40 /I
6660
xcopy %wf_rel%_t\NET45\HtmlRenderer.WinForms.* %wf_rel%\NET45 /I
6761
rmdir %wf_rel%_t /s /q
6862

69-
echo Run WPF builds...
63+
echo.
64+
echo.
65+
echo - BUILD WPF...
66+
echo.
7067
%msbuild% %wpf_proj% /t:rebuild /p:%t_30%;OutputPath=%wpf_out%_t\NET30 %verb%
7168
%msbuild% %wpf_proj% /t:rebuild /p:%t_35%;OutputPath=%wpf_out%_t\NET35 %verb%
7269
%msbuild% %wpf_proj% /t:rebuild /p:%t_40%;OutputPath=%wpf_out%_t\NET40 %verb%
@@ -77,7 +74,10 @@ xcopy %wpf_rel%_t\NET40\HtmlRenderer.WPF.* %wpf_rel%\NET40 /I
7774
xcopy %wpf_rel%_t\NET45\HtmlRenderer.WPF.* %wpf_rel%\NET45 /I
7875
rmdir %wpf_rel%_t /s /q
7976

80-
echo Run MONO builds...
77+
echo.
78+
echo.
79+
echo - BUILD Mono...
80+
echo.
8181
%msbuild% %wf_proj% /t:rebuild /p:%t_mono_20%;OutputPath=%mono_out%_t\NET20 %verb%
8282
%msbuild% %wf_proj% /t:rebuild /p:%t_mono_35%;OutputPath=%mono_out%_t\NET35 %verb%
8383
%msbuild% %wf_proj% /t:rebuild /p:%t_mono_40%;OutputPath=%mono_out%_t\NET40 %verb%
@@ -88,7 +88,10 @@ xcopy %mono_rel%_t\NET40\HtmlRenderer.WinForms.* %mono_rel%\NET40 /I
8888
xcopy %mono_rel%_t\NET45\HtmlRenderer.WinForms.* %mono_rel%\NET45 /I
8989
rmdir %mono_rel%_t /s /q
9090

91-
echo Run PDF Sharp builds...
91+
echo.
92+
echo.
93+
echo - BUILD PdfSharp...
94+
echo.
9295
%msbuild% %pdfs_proj% /t:rebuild /p:%t_20%;OutputPath=%pdfs_out%_t\NET20 %verb%
9396
%msbuild% %pdfs_proj% /t:rebuild /p:%t_35%;OutputPath=%pdfs_out%_t\NET35 %verb%
9497
%msbuild% %pdfs_proj% /t:rebuild /p:%t_40%;OutputPath=%pdfs_out%_t\NET40 %verb%
@@ -97,69 +100,4 @@ xcopy %pdfs_rel%_t\NET20\HtmlRenderer.PdfSharp.* %pdfs_rel%\NET20 /I
97100
xcopy %pdfs_rel%_t\NET35\HtmlRenderer.PdfSharp.* %pdfs_rel%\NET35 /I
98101
xcopy %pdfs_rel%_t\NET40\HtmlRenderer.PdfSharp.* %pdfs_rel%\NET40 /I
99102
xcopy %pdfs_rel%_t\NET45\HtmlRenderer.PdfSharp.* %pdfs_rel%\NET45 /I
100-
rmdir %pdfs_rel%_t /s /q
101-
102-
echo Run Demo builds...
103-
%msbuild% ..\Source\Demo\WinForms\HtmlRenderer.Demo.WinForms.csproj /t:rebuild /p:%t_20%;OutputPath=..\..\..\Build\Release\Demo\WinForms %verb%
104-
%msbuild% ..\Source\Demo\WinForms\HtmlRenderer.Demo.WinForms.csproj /t:rebuild /p:%t_mono_20%;OutputPath=..\..\..\Build\Release\Demo\Mono %verb%
105-
%msbuild% ..\Source\Demo\WPF\HtmlRenderer.Demo.WPF.csproj /t:rebuild /p:%t_40%;OutputPath=..\..\..\Build\Release\Demo\WPF %verb%
106-
107-
echo Handle Demo output...
108-
copy Release\Demo\WinForms\HtmlRendererWinFormsDemo.exe "Release\HtmlRenderer WinForms Demo.exe"
109-
copy Release\Demo\Mono\HtmlRendererWinFormsDemo.exe "Release\HtmlRenderer Mono Demo.exe"
110-
copy Release\Demo\WPF\HtmlRendererWpfDemo.exe "Release\HtmlRenderer WPF Demo.exe"
111-
rmdir Release\Demo /s /q
112-
113-
114-
echo -
115-
echo --
116-
set /p ask=--- Builds complete, continue? (y/n)
117-
if %ask%==n goto end
118-
119-
120-
echo Git clone...
121-
%git% clone -q --branch=v1.5 https://github.com/ArthurHub/HTML-Renderer.git Release\git
122-
xcopy Release\git\Source Release\Source /I /E
123-
rmdir Release\git /s /q
124-
125-
echo Create archive...
126-
cd Release
127-
..\7za.exe a "HtmlRenderer %version%.zip" **
128-
cd..
129-
130-
echo Create Core NuGets...
131-
nuget.exe pack NuGet\HtmlRenderer.Core.nuspec -Version %version% -OutputDirectory Release
132-
133-
echo Create WinForms NuGets...
134-
nuget.exe pack NuGet\HtmlRenderer.WinForms.nuspec -Version %version% -OutputDirectory Release
135-
136-
echo Create WPF NuGets...
137-
nuget.exe pack NuGet\HtmlRenderer.WPF.nuspec -Version %version% -OutputDirectory Release
138-
139-
echo Create Mono NuGets...
140-
nuget.exe pack NuGet\HtmlRenderer.Mono.nuspec -Version %version% -OutputDirectory Release
141-
142-
echo Create PdfSharp NuGets...
143-
nuget.exe pack NuGet\HtmlRenderer.PdfSharp.nuspec -Version %version% -OutputDirectory Release
144-
145-
146-
147-
echo -
148-
echo --
149-
echo --- Remove files...
150-
rmdir Release\Source /s /q
151-
rmdir Release\Core /s /q
152-
rmdir Release\WinForms /s /q
153-
rmdir Release\WPF /s /q
154-
rmdir Release\Mono /s /q
155-
rmdir Release\PdfSharp /s /q
156-
del "Release\HtmlRenderer WinForms Demo.exe"
157-
del "Release\HtmlRenderer WPF Demo.exe"
158-
159-
160-
161-
:end
162-
echo -
163-
echo --
164-
echo --- FINISHED
165-
pause
103+
rmdir %pdfs_rel%_t /s /q

Build/2 build demo.bat

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@echo off
2+
3+
CD %~dp0
4+
5+
set verb=/verbosity:minimal
6+
set msbuild=C:\Windows\Microsoft.Net\Framework\v4.0.30319\MSBuild.exe
7+
8+
set t_20=Configuration=Release;TargetFrameworkVersion=v2.0
9+
set t_40=Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=client
10+
set t_mono_20=%t_20%;DefineConstants=MONO
11+
12+
echo.
13+
echo.
14+
echo - BUILD WinForms...
15+
echo.
16+
%msbuild% ..\Source\Demo\WinForms\HtmlRenderer.Demo.WinForms.csproj /t:rebuild /p:%t_20%;OutputPath=..\..\..\Build\Release\Demo\WinForms %verb%
17+
18+
echo.
19+
echo.
20+
echo - BUILD Mono...
21+
echo.
22+
23+
%msbuild% ..\Source\Demo\WinForms\HtmlRenderer.Demo.WinForms.csproj /t:rebuild /p:%t_mono_20%;OutputPath=..\..\..\Build\Release\Demo\Mono %verb%
24+
25+
echo.
26+
echo.
27+
echo - BUILD WPF...
28+
echo.
29+
%msbuild% ..\Source\Demo\WPF\HtmlRenderer.Demo.WPF.csproj /t:rebuild /p:%t_40%;OutputPath=..\..\..\Build\Release\Demo\WPF %verb%
30+
31+
echo.
32+
echo - Handle outputs...
33+
copy Release\Demo\WinForms\HtmlRendererWinFormsDemo.exe "Release\HtmlRenderer WinForms Demo.exe"
34+
copy Release\Demo\Mono\HtmlRendererWinFormsDemo.exe "Release\HtmlRenderer Mono Demo.exe"
35+
copy Release\Demo\WPF\HtmlRendererWpfDemo.exe "Release\HtmlRenderer WPF Demo.exe"
36+
rmdir Release\Demo /s /q

Build/3 archive.bat

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@echo off
2+
3+
CD %~dp0
4+
5+
echo.
6+
echo - Get version...
7+
for /f %%i in ('getVer.exe ..\Source\SharedAssemblyInfo.cs') do set version=%%i
8+
echo Version: %version%
9+
10+
echo.
11+
echo.
12+
echo - Git clone...
13+
echo.
14+
"C:\Program Files (x86)\Git\bin\git.exe" clone -q --branch=v1.5 https://github.com/ArthurHub/HTML-Renderer.git Release\git
15+
xcopy Release\git\Source Release\Source /I /E
16+
rmdir Release\git /s /q
17+
18+
echo.
19+
echo.
20+
echo - Create archive...
21+
echo.
22+
cd Release
23+
..\7za.exe a "HtmlRenderer %version%.zip" **
24+
cd..

Build/4 pack nuget.bat

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@echo off
2+
3+
CD %~dp0
4+
5+
echo.
6+
echo - Get version...
7+
for /f %%i in ('getVer.exe ..\Source\SharedAssemblyInfo.cs') do set version=%%i
8+
echo Version: %version%
9+
10+
echo.
11+
echo.
12+
echo - Pack NuGets...
13+
echo.
14+
nuget.exe pack NuGet\HtmlRenderer.Core.nuspec -Version %version% -OutputDirectory Release
15+
nuget.exe pack NuGet\HtmlRenderer.WinForms.nuspec -Version %version% -OutputDirectory Release
16+
nuget.exe pack NuGet\HtmlRenderer.WPF.nuspec -Version %version% -OutputDirectory Release
17+
nuget.exe pack NuGet\HtmlRenderer.Mono.nuspec -Version %version% -OutputDirectory Release
18+
nuget.exe pack NuGet\HtmlRenderer.PdfSharp.nuspec -Version %version% -OutputDirectory Release

Build/NuGet/HtmlRenderer.Core.nuspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
Cross framework (WinForms/WPF/PDF/Metro/Mono/etc.), Multipurpose (UI Controls / Image generation / PDF generation / etc.), 100% managed (C#) HTML Rendering library.
1515
</summary>
1616
<description>
17-
The rich formatting power of HTML in .NET applications on any framework using controls or static rendering.
17+
Cross framework (WinForms/WPF/PDF/Metro/Mono/etc.), Multipurpose (UI Controls / Image generation / PDF generation / etc.), 100% managed (C#) HTML Rendering library.
18+
1819
The Core assembly of HTML Renderer does not bound to any rendering framework (WinForms/WPF/PDF/etc.).
1920
Can be used to create framework specific renderer using adapter extensibility object model.
2021
For existing implementations see: HtmlRenderer.WinForms, HtmlRenderer.WPF and HtmlRenderer.PdfSharp.

Build/NuGet/HtmlRenderer.Mono.nuspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
Multipurpose (UI Controls / Image generation) 100% managed (C#) HTML Rendering library for Mono.
1515
</summary>
1616
<description>
17-
The rich formatting power of HTML in .NET Mono applications using controls or static rendering.
17+
Multipurpose (UI Controls / Image generation) 100% managed (C#) HTML Rendering library for Mono.
18+
19+
HTML UI in .NET Mono applications using controls or static rendering.
1820

1921
Features and Benefits:
2022
---
2123
* Controls: HtmlPanel, HtmlLabel, HtmlToolTip.
2224
* Create images from HTML snippets.
23-
* 100% managed code and no external dependencies.
25+
* 100% managed code and no external dependencies, no ActiveX, no MSHTML.
2426
* Extensive HTML 4.01 and CSS level 2 specifications support.
2527
* Support separating CSS from HTML by loading stylesheet code separately.
2628
* Support text selection, copy-paste and context menu.

Build/NuGet/HtmlRenderer.PdfSharp.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
PDF document generator from HTML snippet, 100% managed (C#) library using PdfSharp.
1515
</summary>
1616
<description>
17-
The rich formatting power of HTML in .NET applications to generate PDFs using static rendering.
18-
17+
PDF document generator from HTML snippet, 100% managed (C#) library using PdfSharp.
18+
1919
Features and Benefits:
2020
---
21-
* 100% managed code depends only on PdfSharp library.
21+
* 100% managed code depends only on PdfSharp library, no ActiveX, no MSHTML.
2222
* Extensive HTML 4.01 and CSS level 2 specifications support.
2323
* Support separating CSS from HTML by loading stylesheet code separately.
2424
* Handles "real world" malformed HTML, it doesn't have to be XHTML.

Build/NuGet/HtmlRenderer.WPF.nuspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
Multipurpose (UI Controls / Image generation) 100% managed (C#) HTML Rendering library for WPF.
1515
</summary>
1616
<description>
17-
The rich formatting power of HTML in .NET WPF applications using controls or static rendering.
17+
Multipurpose (UI Controls / Image generation) 100% managed (C#) HTML Rendering library for WPF.
18+
19+
HTML UI in .NET WPF applications using controls or static rendering.
1820

1921
Features and Benefits:
2022
---
2123
* Controls: HtmlPanel, HtmlLabel.
2224
* Create images from HTML snippets.
23-
* 100% managed code and no external dependencies.
25+
* 100% managed code and no external dependencies, no ActiveX, no MSHTML.
2426
* Extensive HTML 4.01 and CSS level 2 specifications support.
2527
* Support separating CSS from HTML by loading stylesheet code separately.
2628
* Support text selection, copy-paste and context menu.

Build/NuGet/HtmlRenderer.WinForms.nuspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
Multipurpose (UI Controls / Image generation) 100% managed (C#) HTML Rendering library for WinForms.
1515
</summary>
1616
<description>
17-
The rich formatting power of HTML in .NET WinForms applications using controls or static rendering.
17+
Multipurpose (UI Controls / Image generation) 100% managed (C#) HTML Rendering library for WinForms.
18+
19+
HTML UI in .NET WinForms applications using controls or static rendering.
1820

1921
Features and Benefits:
2022
---
2123
* Controls: HtmlPanel, HtmlLabel, HtmlToolTip.
2224
* Create images from HTML snippets.
23-
* 100% managed code and no external dependencies.
25+
* 100% managed code and no external dependencies, no ActiveX, no MSHTML.
2426
* Extensive HTML 4.01 and CSS level 2 specifications support.
2527
* Support separating CSS from HTML by loading stylesheet code separately.
2628
* Support text selection, copy-paste and context menu.

0 commit comments

Comments
 (0)