VSSDK projects shouldn't extract to experimental instance when running unit tests #9628
Labels
Area-External
Owned by another feature area and not this repo. Likely be closed in lieu of issue against it.
Performance-Scenario-Build
This issue affects build performance.
Triage-Investigate
Reviewed and investigation needed by dev team
If a VSIX project is in the reference graph of a unit test project, then it will be built whenever a user runs unit tests.
In a repo I'm working in, we don't want to deploy when building for unit tests.
The deploy isn't very fast. It adds delay when you're waiting for unit test results.
If the experimental instance is running, the deploy fails because the destination files are in use. This fails the build, which means tests don't run. You have to kill the experimental instance, which feels like an unnecessary interference to your workflow.
I wonder if it's every helpful to deploy when running unit tests in the VS test runner. If not, then we can disable this step during build. We currently identify "indirect" builds (those which happen for unit tests and for debug launches) via a global property. We could use a similar mechanism in the project system to convey to the VSSDK targets that we're just running unit tests.
It's unclear if this is safe to do. At the least, it'd be good to have a way to opt in to this behaviour. Perhaps we add a project property page for VSSDK projects that has a checkbox for this.
The text was updated successfully, but these errors were encountered: