|
@@ -14,20 +14,17 @@ Function BuildService($serviceName, $copyDll, $copyXml=0, $servicePath='', $copy
|
|
|
dotnet publish "$servicePath/$serviceName.csproj" -c Debug
|
|
|
if($copyDll -eq 1)
|
|
|
{
|
|
|
- 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
|
|
|
+ Copy-Item -recurse -Force $servicePath/bin/Debug/net6.0/publish/$serviceName.dll -Destination $copyDest/$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
|
|
|
+ Copy-Item -recurse -Force $servicePath/bin/Debug/net6.0/publish/$serviceName.xml -Destination $copyDest/$serviceName.xml
|
|
|
}
|
|
|
}
|
|
|
|
|
|
### server
|
|
|
-IF (-not(Test-Path ../WingCloudServer/src/bin/Debug/net6.0/Dependencies/)) { New-Item -Path ../WingCloudServer/src/bin/Debug/net6.0/ -Name Dependencies -Type Directory -force }
|
|
|
-IF (-not(Test-Path ../WingCloudServer/src/bin/Debug/net6.0/Services/)) { New-Item -Path ../WingCloudServer/src/bin/Debug/net6.0/ -Name Services -Type Directory -force }
|
|
|
-BuildService "WingServerCommon" 0 0 "../WingServerCommon"
|
|
|
+
|
|
|
+BuildService "WingServerCommon" 1 0 "../WingServerCommon"
|
|
|
BuildService "WingInterfaceLibrary" 0 1
|
|
|
BuildService "WingNotificationModule" 1 0 "../WingNotificationModule"
|
|
|
BuildService "WingMongoDBModule" 1
|
|
@@ -45,21 +42,14 @@ Copy-Item ../WingEmailModule/src/bin/Debug/net6.0/EmailTemplate/* -Destination .
|
|
|
|
|
|
BuildService "WingUserModule" 1
|
|
|
|
|
|
-IF (-not(Test-Path ../wing/server/RegionData/)) { New-Item -Path ../WingCloudServer/src/bin/Debug/net6.0/ -Name RegionData -Type Directory -force }
|
|
|
-Copy-Item ../WingUserModule/src/bin/Debug/net6.0/Region/* -Destination ../WingCloudServer/src/bin/Debug/net6.0/RegionData
|
|
|
-
|
|
|
BuildService "WingManagementModule" 1
|
|
|
|
|
|
-
|
|
|
BuildService "WingDeviceService" 1 0 "../WingDeviceService"
|
|
|
|
|
|
-
|
|
|
BuildService "ReportService" 1 0 "../WingReportService/ReportService"
|
|
|
|
|
|
BuildService "WingRemedicalModule" 1
|
|
|
|
|
|
-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
|
|
|
|
|
|
Write-Host 'Finished!' -NoNewline
|
|
|
$null = [Console]::ReadKey('?')
|