| | @@ -1,7 +1,9 @@ |
| 1 | 1 | <Project> |
| 2 | 2 | <PropertyGroup> |
| 3 | 3 | <_UbuntuWorkerProject>$(MSBuildThisFileDirectory)../Zipelo.Worker/Zipelo.Worker.csproj</_UbuntuWorkerProject> |
| 4 | | -삭제: <_UbuntuWorkerRemoveProperties>TargetFramework;PublishProfile;PublishProfileFullPath;PublishDir;PublishUrl;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild;PublishSingleFile;PublishTrimmed;PublishAot</_UbuntuWorkerRemoveProperties> |
| 4 | +추가: <_UbuntuWorkerRemoveProperties>PublishProfile;PublishProfileFullPath;PublishDir;PublishUrl;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild</_UbuntuWorkerRemoveProperties> |
| 5 | +추가: <!-- 명시적으로 전달하는 속성을 제거 목록에 중복하지 않음. --> |
| 6 | +추가: <_UbuntuWorkerPublishRemoveProperties>PublishProfile;PublishProfileFullPath;PublishUrl;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild;PublishSelfContained</_UbuntuWorkerPublishRemoveProperties> |
| 5 | 7 | </PropertyGroup> |
| 6 | 8 | |
| 7 | 9 | <Target Name="PrepareUbuntuWorkerDeployment"> |
| | @@ -51,16 +53,26 @@ |
| 51 | 53 | <PropertyGroup> |
| 52 | 54 | <_UbuntuWorkerPublishSelfContained>$(_UbuntuWorkerSelfContained)</_UbuntuWorkerPublishSelfContained> |
| 53 | 55 | <_UbuntuWorkerPublishSelfContained Condition="'$(PublishSelfContained)' != ''">$(PublishSelfContained)</_UbuntuWorkerPublishSelfContained> |
| 56 | +추가: <_UbuntuWorkerPublishStage>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)', '$(MSBuildProjectDirectory)'))/zipelo-worker-publish/$([System.Guid]::NewGuid())/</_UbuntuWorkerPublishStage> |
| 54 | 57 | <_UbuntuWorkerPublishDirectory>$([System.IO.Path]::GetFullPath('$(PublishDir)', '$(MSBuildProjectDirectory)'))/worker/</_UbuntuWorkerPublishDirectory> |
| 55 | 58 | </PropertyGroup> |
| 59 | +추가: <!-- 이번 게시의 새 SDK 출력만 수집하며 이전 bin/publish를 검색하지 않음. --> |
| 60 | +추가: <MakeDir Directories="$(_UbuntuWorkerPublishStage)" /> |
| 56 | 61 | <MSBuild Projects="$(_UbuntuWorkerProject)" Targets="Publish" |
| 57 | | -삭제: RemoveProperties="$(_UbuntuWorkerRemoveProperties);PublishSelfContained" |
| 58 | | -삭제: Properties="Configuration=$(Configuration);TargetFramework=net10.0;RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(_UbuntuWorkerPublishSelfContained);UseAppHost=true;PublishSingleFile=false;PublishTrimmed=false;PublishAot=false;PublishDir=$(_UbuntuWorkerPublishDirectory)" /> |
| 62 | +추가: RemoveProperties="$(_UbuntuWorkerPublishRemoveProperties)" |
| 63 | +추가: Properties="Configuration=$(Configuration);TargetFramework=net10.0;RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(_UbuntuWorkerPublishSelfContained);UseAppHost=true;PublishSingleFile=false;PublishTrimmed=false;PublishAot=false;PublishDir=$(_UbuntuWorkerPublishStage)" /> |
| 59 | 64 | <ItemGroup> |
| 60 | | -삭제: <_UbuntuWorkerPublishRequired Include="$(_UbuntuWorkerPublishDirectory)Zipelo.Worker;$(_UbuntuWorkerPublishDirectory)Zipelo.Worker.dll;$(_UbuntuWorkerPublishDirectory)Zipelo.Worker.deps.json;$(_UbuntuWorkerPublishDirectory)Zipelo.Worker.runtimeconfig.json;$(_UbuntuWorkerPublishDirectory)Zipelo.Core.dll;$(_UbuntuWorkerPublishDirectory)Zipelo.Runtime.dll" /> |
| 61 | | -삭제: <_UbuntuWorkerPublishRequired Include="$(_UbuntuWorkerPublishDirectory)System.Private.CoreLib.dll;$(_UbuntuWorkerPublishDirectory)libcoreclr.so;$(_UbuntuWorkerPublishDirectory)libhostfxr.so;$(_UbuntuWorkerPublishDirectory)libhostpolicy.so" |
| 65 | +추가: <_UbuntuWorkerPublishRequired Include="$(_UbuntuWorkerPublishStage)Zipelo.Worker;$(_UbuntuWorkerPublishStage)Zipelo.Worker.dll;$(_UbuntuWorkerPublishStage)Zipelo.Worker.deps.json;$(_UbuntuWorkerPublishStage)Zipelo.Worker.runtimeconfig.json;$(_UbuntuWorkerPublishStage)Zipelo.Core.dll;$(_UbuntuWorkerPublishStage)Zipelo.Runtime.dll" /> |
| 66 | +추가: <_UbuntuWorkerPublishRequired Include="$(_UbuntuWorkerPublishStage)System.Private.CoreLib.dll;$(_UbuntuWorkerPublishStage)libcoreclr.so;$(_UbuntuWorkerPublishStage)libclrjit.so;$(_UbuntuWorkerPublishStage)libhostfxr.so;$(_UbuntuWorkerPublishStage)libhostpolicy.so" |
| 62 | 67 | Condition="'$(_UbuntuWorkerPublishSelfContained)' == 'true'" /> |
| 63 | 68 | </ItemGroup> |
| 64 | 69 | <Error Condition="!Exists('%(_UbuntuWorkerPublishRequired.Identity)')" Text="Ubuntu 작업자 필수 게시 파일이 누락되었습니다: %(_UbuntuWorkerPublishRequired.Filename)%(_UbuntuWorkerPublishRequired.Extension)" /> |
| 70 | +추가: <ItemGroup> |
| 71 | +추가: <_UbuntuWorkerPublishedFile Include="$(_UbuntuWorkerPublishStage)**/*" /> |
| 72 | +추가: </ItemGroup> |
| 73 | +추가: <Copy SourceFiles="@(_UbuntuWorkerPublishedFile)" |
| 74 | +추가: DestinationFiles="@(_UbuntuWorkerPublishedFile->'$(_UbuntuWorkerPublishDirectory)%(RecursiveDir)%(Filename)%(Extension)')" |
| 75 | +추가: SkipUnchangedFiles="false" /> |
| 76 | +추가: <RemoveDir Directories="$(_UbuntuWorkerPublishStage)" /> |
| 65 | 77 | </Target> |
| 66 | 78 | </Project> |