|
@@ -1,6 +1,6 @@
|
|
|
dotnet nuget locals all --clear
|
|
|
|
|
|
-Function BuildService($serviceName, $copyDll, $servicePath='', $copyDest='')
|
|
|
+Function BuildService($serviceName, $copyDll, $copyXml=0, $servicePath='', $copyDest='')
|
|
|
{
|
|
|
if($servicePath -eq '')
|
|
|
{
|
|
@@ -17,6 +17,11 @@ Function BuildService($serviceName, $copyDll, $servicePath='', $copyDest='')
|
|
|
Copy-Item -recurse -Force $servicePath/bin/Debug/net6.0/publish/$serviceName.dll -Destination $copyDest/Services/$serviceName.dll
|
|
|
Copy-Item -recurse -Force $servicePath/bin/Debug/net6.0/publish/*.dll -Destination $copyDest/Dependencies/ -Exclude $serviceName.dll
|
|
|
}
|
|
|
+ if($copyXml -eq 1)
|
|
|
+ {
|
|
|
+ Copy-Item -recurse -Force $servicePath/bin/Debug/net6.0/publish/$serviceName.xml -Destination $copyDest/Services/$serviceName.xml
|
|
|
+ Copy-Item -recurse -Force $servicePath/bin/Debug/net6.0/publish/*.xml -Destination $copyDest/Dependencies/ -Exclude $serviceName.xml
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
### server
|
|
@@ -25,6 +30,8 @@ IF (-not(Test-Path ../../WingCloudServer/src/bin/Debug/net6.0/Services/)) { New-
|
|
|
|
|
|
BuildService "WingCloudServer" 0
|
|
|
|
|
|
+BuildService "WingInterfaceLibrary" 0 1
|
|
|
+
|
|
|
BuildService "WingMongoDBModule" 1
|
|
|
|
|
|
BuildService "WingSMSModule" 1
|
|
@@ -45,11 +52,13 @@ BuildService "WingManagementModule" 1
|
|
|
|
|
|
BuildService "WingStorageModule" 1
|
|
|
|
|
|
-BuildService "DeviceService" 1 "../../DeviceService"
|
|
|
+BuildService "DeviceService" 1 0 "../../DeviceService"
|
|
|
|
|
|
BuildService "WingRemedicalModule" 1
|
|
|
|
|
|
-BuildService "WingServerCommon" 0 "../../WingServerCommon"
|
|
|
+BuildService "WingNotificationModule" 1
|
|
|
+
|
|
|
+BuildService "WingServerCommon" 0 0 "../../WingServerCommon"
|
|
|
Copy-Item -recurse -Force ../../WingServerCommon/bin/Debug/net6.0/publish/WingServerCommon.dll -Destination ../../WingCloudServer/src/bin/Debug/net6.0/WingServerCommon.dll
|
|
|
Copy-Item -recurse -Force ../../WingServerCommon/bin/Debug/net6.0/publish/WingServerCommon.dll -Destination ../../WingCloudServer/src/bin/Debug/net6.0/Dependencies/WingServerCommon.dll
|
|
|
|