dotnet nuget locals all --clear Function BuildService($serviceName, $copyDll, $copyXml=0, $servicePath='', $copyDest='') { if($servicePath -eq '') { $servicePath = "../$serviceName/src" } if($copyDest -eq '') { $copyDest = "../WingCloudServer/src/bin/Debug/net6.0" } nuget restore "$servicePath/$serviceName.csproj" -source "http://nuget.ius.plus:88/v3/index.json;https://nuget.cdn.azure.cn/v3/index.json" if($serviceName -eq "WingCloudServer") { dotnet publish "$servicePath/$serviceName.csproj" -c Debug -o $copyDest } else { 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/$serviceName.dll } if($copyXml -eq 1) { Copy-Item -recurse -Force $servicePath/bin/Debug/netstandard2.0/publish/$serviceName.xml -Destination $copyDest/$serviceName.xml } } ### server BuildService "WingCloudServer" 0 BuildService "WingServerCommon" 1 0 "../WingServerCommon" BuildService "WingInterfaceLibrary" 0 1 BuildService "WingNotificationModule" 1 0 "../WingNotificationModule" BuildService "WingMongoDBModule" 1 BuildService "WingStorageModule" 1 BuildService "WingSMSModule" 1 BuildService "WingSessionModule" 1 BuildService "WingEmailModule" 1 BuildService "WingUserModule" 1 BuildService "WingManagementModule" 1 BuildService "WingDeviceService" 1 0 "../WingDeviceService" BuildService "ReportService" 1 0 "../WingReportService/ReportService" BuildService "WingRemedicalModule" 1 BuildService "WingAIDiagnosisService" 1 0 "../WingAIDiagnosisService" Copy-Item -recurse -Force ../WingAIDiagnosisService/bin/Debug/net6.0/publish/AIDiagnosis ../WingCloudServer/src/bin/Debug/net6.0 Copy-Item -recurse -Force ../WingAIDiagnosisService/bin/Debug/net6.0/publish/Emgu.CV ../WingCloudServer/src/bin/Debug/net6.0 BuildService "WingLiveConsultationService" 1 0 "../WingLiveConsultationService" BuildService "WingRtcService" 1 0 "../WingRtcService/WingRtcService" BuildService "WingASRService" 1 0 "../WingASRService" BuildService "WingEducationService" 1 0 "../WingEducationService" BuildService "WingPaymentService" 1 0 "../WingPaymentService" BuildService "WingDeployPlatformService" 1 0 "../WingCloudServer/src/WingDeployPlatformService" BuildService "WingLabService" 1 0 "../WingLabService" Write-Host 'Finished!' -NoNewline $null = [Console]::ReadKey('?')