-
Notifications
You must be signed in to change notification settings - Fork 5
/
pack.ps1
82 lines (61 loc) · 2.19 KB
/
pack.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
71
72
73
74
75
76
77
78
79
80
81
82
$ErrorActionPreference = "Stop"
b64 -d $env:SnkFile Src\LSJ.snk
if(!$?) { Exit $LASTEXITCODE }
Set-Location Src\Lsj.Util\
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.APIs.Alipay
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.APIs.UmeTrip
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.APIs.WeChat
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.AspNetCore
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.CsBuilder
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Data
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Dynamic
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.HtmlBuilder
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.JSON
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Net
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Net.Web
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Office
&${env:ProgramFiles}'\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe' -restore /p:Configuration=Release /t:pack /p:IncludeSymbols=true
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Protobuf
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.SQLBuilder
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Win32
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Win32.NativeUI
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.WinForm
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.WPF
dotnet pack -c Release --include-source
if(!$?) { Exit $LASTEXITCODE }
Set-Location ..\..\