Update TestHostApp to always copy TerminalApp.LocalTests.dll #6232

Closed
opened 2026-01-31 00:32:59 +00:00 by claunia · 2 comments
Owner

Originally created by @zadjii-msft on GitHub (Jan 31, 2020).

Since I just used a copy rule for the TestHostApp project's dependency on the LocalTests_TerminalApp project, if you just change the test code, the TestHostApp build won't auto pick-up the updated TerminalApp.LocalTests.dll. This is annoying if youre iterating on the local tests, since you can't just build TestHostApp to get the updated LocalTests.

The rule that's bad:

    <!-- Copy our test code from LocalTests_TerminalApp into this directory -->
    <Copy SourceFiles="$(_TestBinRoot)\LocalTests_TerminalApp\TerminalApp.LocalTests.dll"
          DestinationFiles="$(TargetDir)\TerminalApp.LocalTests.dll" />

As a workaround, you have to manually

copy bin\x64\Debug\LocalTests_TerminalApp\TerminalApp.LocalTests.dll x64\Debug\TestHostApp\ /y

from the solution root

Originally created by @zadjii-msft on GitHub (Jan 31, 2020). Since I just used a copy rule for the `TestHostApp` project's dependency on the `LocalTests_TerminalApp` project, if you just change the test code, the `TestHostApp` build won't auto pick-up the updated `TerminalApp.LocalTests.dll`. This is annoying if youre iterating on the local tests, since you can't just build `TestHostApp` to get the updated LocalTests. The rule that's bad: ```xml <!-- Copy our test code from LocalTests_TerminalApp into this directory --> <Copy SourceFiles="$(_TestBinRoot)\LocalTests_TerminalApp\TerminalApp.LocalTests.dll" DestinationFiles="$(TargetDir)\TerminalApp.LocalTests.dll" /> ``` As a workaround, you have to manually `copy bin\x64\Debug\LocalTests_TerminalApp\TerminalApp.LocalTests.dll x64\Debug\TestHostApp\ /y` from the solution root
claunia added the Issue-TaskNeeds-Tag-FixProduct-TerminalArea-CodeHealth labels 2026-01-31 00:32:59 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 31, 2020):

I think there's a <Copy> option that says "always do this" or "only do if out of date".

@DHowett-MSFT commented on GitHub (Jan 31, 2020): I think there's a `<Copy>` option that says "always do this" or "only do if out of date".
Author
Owner

@zadjii-msft commented on GitHub (Jul 19, 2021):

You know what, we did this at some point in the past. I'm too lazy to look up the specific commit ATM.

@zadjii-msft commented on GitHub (Jul 19, 2021): You know what, we did this at some point in the past. I'm too lazy to look up the specific commit ATM.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6232