Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSTest 3.4.1 does not work with .net472 AND when using deployment item when running from Visual Studio #3019

Closed
fforjan opened this issue May 28, 2024 · 1 comment
Assignees
Milestone

Comments

@fforjan
Copy link

fforjan commented May 28, 2024

Describe the bug

Unit tests using 3.4.1 and targeting net472 with DeploymentItem triggers a stackoverflow:

[5/28/2024 2:47:19.283 PM] [Warning] Test Run deployment issue: Failed to get the file for deployment item 'DoesNotExists': System.IO.FileNotFoundException: Could not find file 'source\repos\TestProject1\bin\Debug\net472\DoesNotExists'.
[5/28/2024 2:47:23.241 PM] [Error] The active test run was aborted. Reason: Test host process crashed : Process is terminated due to StackOverflowException.

Steps To Reproduce

Create a new test project in a new solution targeting net472 and add a Deployment Item attribute
image

Expected behavior

Test should pass

Actual behavior

Test cannot be executed

Additional context

Cannot be reproduce in command line, only in Visual Studio 17.10.0 (didn't try other versions)

@fforjan fforjan changed the title MSTest 3.4.1 does not work with .net472 AND when using deployment item MSTest 3.4.1 does not work with .net472 AND when using deployment item when running from Visual Studio May 28, 2024
@Evangelink Evangelink self-assigned this May 29, 2024
@Evangelink Evangelink added this to the 3.4.2 milestone May 29, 2024
@Evangelink
Copy link
Member

Thank you for the reproducer @fforjan. I confirm I can repro the issue and will work on a fix now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants