Skip to content

Fix deployment regression - #6718

Merged
Youssef Fahmy (Youssef1313) merged 7 commits into
mainfrom
dev/ygerges/reg
Oct 14, 2025
Merged

Youssef Fahmy (Youssef1313) merged 7 commits into
mainfrom
dev/ygerges/reg

Conversation

@Youssef1313

@Youssef1313 Youssef Fahmy (Youssef1313) commented Oct 10, 2025 •

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

/backport to rel/4.0

@github-actions

Copy link
Copy Markdown
Contributor

@Youssef1313

Copy link
Copy Markdown
Member Author

/backport to rel/4.0

@github-actions

Copy link
Copy Markdown
Contributor

@Youssef1313

Copy link
Copy Markdown
Member Author

/backport to rel/4.0

@github-actions

Copy link
Copy Markdown
Contributor

@Youssef1313

Copy link
Copy Markdown
Member Author

/backport to rel/4.0

@github-actions

Copy link
Copy Markdown
Contributor

@Youssef1313

Copy link
Copy Markdown
Member Author

/backport to rel/4.0

@github-actions

Copy link
Copy Markdown
Contributor

@Youssef1313

Copy link
Copy Markdown
Member Author

/backport to rel/3.11

@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

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