| | @@ -1,5 +1,7 @@ |
| 1 | 1 | <Project> |
| 2 | 2 | <PropertyGroup> |
| 3 | +추가: <!-- 명시적으로 전달하는 게시 속성을 제거 목록에 중복하지 않음. --> |
| 4 | +추가: <_ZipeloWorkerPublishRemoveProperties>PublishProfile;PublishProfileFullPath;PublishUrl;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild;PublishSelfContained</_ZipeloWorkerPublishRemoveProperties> |
| 3 | 5 | <_ZipeloWorkerProject>$(MSBuildThisFileDirectory)../Zipelo.Worker/Zipelo.Worker.csproj</_ZipeloWorkerProject> |
| 4 | 6 | </PropertyGroup> |
| 5 | 7 | |
| | @@ -33,16 +35,33 @@ |
| 33 | 35 | SkipUnchangedFiles="true" /> |
| 34 | 36 | </Target> |
| 35 | 37 | |
| 36 | | -삭제: <!-- 게시 시 개발 빌드 폴더 대신 같은 RID와 런타임 방식의 게시물을 사용함. --> |
| 38 | +추가: <!-- 최종 배치는 UI 게시 위치 아래에 SDK가 같은 RID로 별도 게시하도록 함. --> |
| 37 | 39 | <Target Name="PublishZipeloWorker" AfterTargets="Publish" DependsOnTargets="PrepareZipeloWorkerDeployment" |
| 38 | 40 | Condition="'$(DesignTimeBuild)' != 'true' And ('$(OS)' == 'Windows_NT' Or '$(RuntimeIdentifier)' == 'win-x64')"> |
| 41 | +추가: <Error Condition="'$(PublishDir)' == ''" Text="Windows UI 게시 출력 디렉터리가 비어 있습니다." /> |
| 39 | 42 | <PropertyGroup> |
| 43 | +추가: <_ZipeloWorkerPublishSelfContained>$(_ZipeloWorkerSelfContained)</_ZipeloWorkerPublishSelfContained> |
| 44 | +추가: <_ZipeloWorkerPublishSelfContained Condition="'$(PublishSelfContained)' != ''">$(PublishSelfContained)</_ZipeloWorkerPublishSelfContained> |
| 45 | +추가: <_ZipeloWorkerPublishStage>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)', '$(MSBuildProjectDirectory)'))/zipelo-worker-publish/$([System.Guid]::NewGuid())/</_ZipeloWorkerPublishStage> |
| 40 | 46 | <_ZipeloWorkerPublishDirectory>$([System.IO.Path]::GetFullPath('$(PublishDir)', '$(MSBuildProjectDirectory)'))/worker/</_ZipeloWorkerPublishDirectory> |
| 41 | 47 | </PropertyGroup> |
| 48 | +추가: <!-- 이번 게시의 새 SDK 출력만 수집하며 이전 bin/publish를 검색하지 않음. --> |
| 49 | +추가: <MakeDir Directories="$(_ZipeloWorkerPublishStage)" /> |
| 42 | 50 | <MSBuild Projects="$(_ZipeloWorkerProject)" Targets="Publish" |
| 43 | | -삭제: RemoveProperties="TargetFramework;PublishProfile;PublishProfileFullPath;PublishDir;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild" |
| 44 | | -삭제: Properties="Configuration=$(Configuration);TargetFramework=net10.0;RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(_ZipeloWorkerSelfContained);UseAppHost=true;PublishSingleFile=false;PublishTrimmed=false;PublishDir=$(_ZipeloWorkerPublishDirectory)" /> |
| 45 | | -삭제: <Error Condition="!Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.exe') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.dll') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.runtimeconfig.json') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.deps.json') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Core.dll') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Runtime.dll')" |
| 46 | | -삭제: Text="작업자 게시 파일이 누락되어 배포를 완료할 수 없습니다." /> |
| 51 | +추가: RemoveProperties="$(_ZipeloWorkerPublishRemoveProperties)" |
| 52 | +추가: Properties="Configuration=$(Configuration);TargetFramework=net10.0;RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(_ZipeloWorkerPublishSelfContained);UseAppHost=true;PublishSingleFile=false;PublishTrimmed=false;PublishAot=false;PublishDir=$(_ZipeloWorkerPublishStage)" /> |
| 53 | +추가: <ItemGroup> |
| 54 | +추가: <_ZipeloWorkerPublishRequired Include="$(_ZipeloWorkerPublishStage)Zipelo.Worker.exe;$(_ZipeloWorkerPublishStage)Zipelo.Worker.dll;$(_ZipeloWorkerPublishStage)Zipelo.Worker.deps.json;$(_ZipeloWorkerPublishStage)Zipelo.Worker.runtimeconfig.json;$(_ZipeloWorkerPublishStage)Zipelo.Core.dll;$(_ZipeloWorkerPublishStage)Zipelo.Runtime.dll" /> |
| 55 | +추가: <_ZipeloWorkerPublishRequired Include="$(_ZipeloWorkerPublishStage)System.Private.CoreLib.dll;$(_ZipeloWorkerPublishStage)coreclr.dll;$(_ZipeloWorkerPublishStage)clrjit.dll;$(_ZipeloWorkerPublishStage)hostfxr.dll;$(_ZipeloWorkerPublishStage)hostpolicy.dll" |
| 56 | +추가: Condition="'$(_ZipeloWorkerPublishSelfContained)' == 'true'" /> |
| 57 | +추가: </ItemGroup> |
| 58 | +추가: <Error Condition="!Exists('%(_ZipeloWorkerPublishRequired.Identity)')" Text="Windows 작업자 필수 게시 파일이 누락되었습니다: %(_ZipeloWorkerPublishRequired.Filename)%(_ZipeloWorkerPublishRequired.Extension)" /> |
| 59 | +추가: <ItemGroup> |
| 60 | +추가: <_ZipeloWorkerPublishedFile Include="$(_ZipeloWorkerPublishStage)**/*" /> |
| 61 | +추가: </ItemGroup> |
| 62 | +추가: <Copy SourceFiles="@(_ZipeloWorkerPublishedFile)" |
| 63 | +추가: DestinationFiles="@(_ZipeloWorkerPublishedFile->'$(_ZipeloWorkerPublishDirectory)%(RecursiveDir)%(Filename)%(Extension)')" |
| 64 | +추가: SkipUnchangedFiles="false" /> |
| 65 | +추가: <RemoveDir Directories="$(_ZipeloWorkerPublishStage)" /> |
| 47 | 66 | </Target> |
| 48 | 67 | </Project> |