@@ -18,81 +18,38 @@ generate_nuget_version(){
1818 echo " TEST NUGET VERSION: $TEST_NUGET_VERSION "
1919}
2020
21- generate_nuget_version
22-
23- echo " Building Abstractions."
24- cd abstractions
25- pwd
26- cp ../.version .
27- echo " Root Dir:"
28- ls -la
29- dotnet clean
30- dotnet restore
31- dotnet build --no-restore --configuration=Release
32- dotnet publish --no-restore --configuration=Release /p:Version=${TEST_NUGET_VERSION}
33- dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
34- echo " Release Dir :"
35- ls -la bin/Release
36- echo " net8.0 Dir :"
37- ls -la bin/Release/net8.0
38- echo " publish Dir :"
39- ls -la bin/Release/net8.0/publish
40- cd ..
41-
4221
43- echo " Building Data."
44- cd data
45- pwd
46- cp ../.version .
47- echo " Root Dir:"
48- ls -la
49- dotnet clean
50- dotnet restore
51- dotnet build --no-restore --configuration=Release
52- dotnet publish --no-restore --no-build --configuration=Release /p:Version=${TEST_NUGET_VERSION}
53- dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
54- echo " Release Dir :"
55- ls -la bin/Release
56- echo " net8.0 Dir :"
57- ls -la bin/Release/net8.0
58- echo " publish Dir :"
59- ls -la bin/Release/net8.0/publish
60- cd ..
61-
62- echo " Building Letter."
63- cd letter
64- pwd
65- cp ../.version .
66- echo " Root Dir:"
67- ls -la
68- dotnet clean
69- dotnet restore
70- dotnet build --no-restore --configuration=Release
71- dotnet publish --no-restore --no-build --configuration=Release /p:Version=${TEST_NUGET_VERSION}
72- dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
73- echo " Release Dir :"
74- ls -la bin/Release
75- echo " net8.0 Dir :"
76- ls -la bin/Release/net8.0
77- echo " publish Dir :"
78- ls -la bin/Release/net8.0/publish
79- cd ..
22+ build (){
23+ echo " 0000 $0 "
24+ echo " 1111 $1 "
25+ name=$1
26+ echo " Building $name "
27+ cd $name
28+ pwd
29+ cp ../.version .
30+ echo " Root Dir:"
31+ ls -la
32+ echo " Cleaning..."
33+ dotnet clean
34+ echo " Restoring..."
35+ dotnet restore /p:Version=${TEST_NUGET_VERSION}
36+ echo " Building..."
37+ dotnet build --no-restore --configuration Release /p:Version=${TEST_NUGET_VERSION}
38+ echo " Publishing..."
39+ dotnet publish --no-restore --no-build --configuration Release /p:Version=${TEST_NUGET_VERSION}
40+ echo " Packing..."
41+ dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
42+ echo " Release Dir :"
43+ ls -la bin/Release
44+ echo " net8.0 Dir :"
45+ ls -la bin/Release/net8.0
46+ echo " publish Dir :"
47+ ls -la bin/Release/net8.0/publish
48+ cd ..
49+ }
8050
81- echo " Building Host."
82- cd host
83- pwd
84- cp ../.version .
85- echo " Root Dir:"
86- ls -la
87- dotnet clean
88- dotnet restore
89- dotnet build --no-restore --configuration=Release
90- dotnet publish --no-restore --no-build --configuration=Release /p:Version=${TEST_NUGET_VERSION}
91- dotnet pack --configuration Release /p:Version=${TEST_NUGET_VERSION} --no-build
92- echo " Release Dir :"
93- ls -la bin/Release
94- echo " net8.0 Dir :"
95- ls -la bin/Release/net8.0
96- echo " publish Dir :"
97- ls -la bin/Release/net8.0/publish
98- cd ..
51+ generate_nuget_version
52+ build " abstractions"
53+ build " data"
54+ build " letter"
55+ build " host"
0 commit comments