Issue Description

in web project's taskhost the current working directory is a different project, leading to skipping writing lines to file
the write should not be skipped because this project's output current output directory does not have the file
Steps to Reproduce
bug2fail.zip
setup:
aspire sample project edited so web references apiservice
build with main -mt mode
Expected Behavior
identical behavior with what normal multiprocess logic
Actual Behavior
occassional failure
Analysis
No response
Versions & Configurations
current main -mt