-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpack-debug.ps1
86 lines (63 loc) · 2.08 KB
/
pack-debug.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
83
84
85
86
$ErrorActionPreference = "Stop"
$commitCount = git rev-list HEAD --count
$env:VersionSuffix = "debug" + $commitCount
b64 -d $env:SnkFile Src\LSJ.snk
if (!$?) { Exit $LASTEXITCODE }
Set-Location Src\Lsj.Util\
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.APIs.Alipay
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.APIs.UmeTrip
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.APIs.WeChat
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.AspNetCore
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.CsBuilder
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Data
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Dynamic
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.HtmlBuilder
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.JSON
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Net
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Net.Web
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Office
&${env:ProgramFiles}'\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe' -restore /t:pack /p:IncludeSymbols=true
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Protobuf
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.SQLBuilder
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Win32
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.Win32.NativeUI
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.WinForm
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\Lsj.Util.WPF
dotnet pack --include-source
if (!$?) { Exit $LASTEXITCODE }
Set-Location ..\..\