Skip to content

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Oct 10, 2025

Fixes #6713

When we introduced the caching of UnitTestElement on the TestCase object, we missed the case where the source gets updated.

When deployment items feature is used, the source points to the assembly in deployment directory, and not from bin. The test assembly should only be loaded ever from the deployment directory. Loading the test assembly twice in the same app domain but in two different contexts (LoadFrom and default contexts) will lead to errors at run time.

@Youssef1313 Youssef1313 marked this pull request as ready for review October 13, 2025 10:49
@Youssef1313
Copy link
Member Author

/backport to rel/4.0

Copy link
Contributor

Started backporting to rel/4.0: https://github.com/microsoft/testfx/actions/runs/18463577664

@Youssef1313
Copy link
Member Author

/backport to rel/4.0

Copy link
Contributor

Started backporting to rel/4.0: https://github.com/microsoft/testfx/actions/runs/18463790290

@Youssef1313
Copy link
Member Author

/backport to rel/4.0

Copy link
Contributor

Started backporting to rel/4.0: https://github.com/microsoft/testfx/actions/runs/18464005693

@Youssef1313
Copy link
Member Author

/backport to rel/4.0

Copy link
Contributor

Started backporting to rel/4.0: https://github.com/microsoft/testfx/actions/runs/18465014328

@Youssef1313
Copy link
Member Author

/backport to rel/4.0

Copy link
Contributor

Started backporting to rel/4.0: https://github.com/microsoft/testfx/actions/runs/18492376996

@Youssef1313 Youssef1313 enabled auto-merge (squash) October 14, 2025 10:20
@Youssef1313 Youssef1313 merged commit 694e1dc into main Oct 14, 2025
8 checks passed
@Youssef1313 Youssef1313 deleted the dev/ygerges/reg branch October 14, 2025 10:25
Youssef1313 added a commit that referenced this pull request Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System.InvalidCastException when using custom data type converter & running tests with "dotnet test"

2 participants