microsoft / msix-packaging

MSIX SDK
MIT License
963 stars 163 forks source link

[Task 48751920] Added IMessageHandler implementation in PS Script for logging in avdpublish-task #617

Closed Arnab1996 closed 4 months ago

Arnab1996 commented 4 months ago

Parent Id: 48751920

Added IMessageHandler implementation in PS Script for logging in avdpublish-task.



Why were the changes made? - The current avdpublish-task is not having real time logging functionality. - It was dumping the logs after the entire execution completes, leading to a non-user-friendly experience.




What files & flows were changed? - The `main.ts1` was updated to pass the full path to the `AppAttachKernel` DLLs. - The `main.ts1` was updated to remove the log dumping logic. - The `main.ts1` was updated to make the execute function asynchronous. - The `AVDPublish.ps1` was updated to implement the `IMessageHandler` interface.



How were the changes tested? - Tested the pipeline by running the build for this branch. The pipeline was verified to be running successfully and all tasks were completing without errors. - Real time log behavior was verified.