team-ljyzipelo

공개

Ubuntu 작업자의 게시 경로 전달 충돌을 수정한다

작성자
호시노 히나타
작성 시각
커밋
a378fb0db072f6848dde4ecfe9e616294f0e59f1
부모
d33db6d
이 시점의 파일 보기

변경된 파일 1개

+17-5
수정src/Zipelo.Ubuntu/WorkerDeployment.targets+17-5
@@ -1,7 +1,9 @@
11<Project>
22 <PropertyGroup>
33 <_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>
57 </PropertyGroup>
68
79 <Target Name="PrepareUbuntuWorkerDeployment">
@@ -51,16 +53,26 @@
5153 <PropertyGroup>
5254 <_UbuntuWorkerPublishSelfContained>$(_UbuntuWorkerSelfContained)</_UbuntuWorkerPublishSelfContained>
5355 <_UbuntuWorkerPublishSelfContained Condition="'$(PublishSelfContained)' != ''">$(PublishSelfContained)</_UbuntuWorkerPublishSelfContained>
56추가: <_UbuntuWorkerPublishStage>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)', '$(MSBuildProjectDirectory)'))/zipelo-worker-publish/$([System.Guid]::NewGuid())/</_UbuntuWorkerPublishStage>
5457 <_UbuntuWorkerPublishDirectory>$([System.IO.Path]::GetFullPath('$(PublishDir)', '$(MSBuildProjectDirectory)'))/worker/</_UbuntuWorkerPublishDirectory>
5558 </PropertyGroup>
59추가: <!-- 이번 게시의 새 SDK 출력만 수집하며 이전 bin/publish를 검색하지 않음. -->
60추가: <MakeDir Directories="$(_UbuntuWorkerPublishStage)" />
5661 <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)" />
5964 <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"
6267 Condition="'$(_UbuntuWorkerPublishSelfContained)' == 'true'" />
6368 </ItemGroup>
6469 <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)" />
6577 </Target>
6678</Project>