-
Notifications
You must be signed in to change notification settings - Fork 255
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
Resource folder "en" is deleted #197
Comments
@shietmann: We use this to ensure that failure/warning messages from the adapter are localized for non en languages. This msbuild task copies over Framework/Adapter resources over to the Out directory and ensures they are cleaned up on Clean. Its strange that a project creation is deleting that folder. Is this P.S: You have the right workaround for now and this should not impact you as long as you are running against en. |
@AbhitejJohn doing a simple build in visual studio is working fine. |
@sheitmann : Got it. This should be a bug. |
Add a conditional clean to the csproj. |
@sheitmann : Can you please provide us with a small repro for your problem? |
@jayaranigarg If you do a "rebuild solution" you will see that the en folder with the resource assemblies is missing. If you do a "clean solution" and a "build solution" the en folder is still there and the tests will succeed. When not sharing the same output directory it is working fine. |
@sheitmann : Thank you for the repro. We have fixed the issue on our end. You can consume the fix from here : |
Hi,
I have a shared output directory for my library assemblies and my test assemblies.
After adding a project using MSTestV2 I noticed that my "en" resource folder is deleted when the unit test project is created. This caused some tests to fail because the resources where not there anymore.
After some investigation I found the msbuild property to disable that behavior: EnableMSTestV2CopyResources
If it is activated (default is true) it is cleaning up some resources and deletes the whole folder.
My question is, what is this used for at all and what does that mean for me now that I have disabled it?
Is a good idea to delete the whole resources directory because of side effects?
Br
Sven
The text was updated successfully, but these errors were encountered: