-
Notifications
You must be signed in to change notification settings - Fork 325
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
Test projects end up with this GUID #472
Comments
VS generates this automatically, to identify project as test project. More details here. |
Can we make test projects have their own msbuild sdk to avoid this being added to all test projects? |
#440 is adding a capability for test projects. This guid dependency should go away once VS Test Window starts consuming this. |
Is that an RTM feature? I'd love to keep the project files as clean as possible... |
Triage: this will require a fix in test window, we should take this in 15.1. |
My project file thanks you. |
This kind of noise going back and forth in your source control is a bit irritating, when a bunch of project files suddenly have pending changes and nothing of real consequence happened. I'm really looking forward to getting it out of there. |
I'm on 15.1 and this is still annoying the crap out of me on every commit trying to sneak its way into my git repo. What's the status of removing this thing? |
Conscientious csproj citizens don't dirty pristine projects with their grubby GUIDs. |
This issue is fixed. Fix will be available in the next VS update. |
Thank you heaps! |
Wow so that was quick! Is this the version you're referring to or is it the next one? |
This fix should be part of the next 15.3 preview updates. |
@sharwell Does the project have the "TestContainer" Capability? BTW, If the service GUID is already added, the fix made can't remove it. It should be removed manually. |
I'm assuming you are referring to the I'm not sure. It is possible the bug is currently only affecting cases where this capability is not included. However, it would still be the same bug for these cases. If separate test-related handling is desired for projects which do not have this capability, it needs to be relocated to either the solution user options (*.suo) or the project user options (*.csproj.user).
Yes, this is my expectation. |
Absolutely. |
Just updated to 15.6 and suddenly seeing this in all our NUnit |
@smadala or someone else from MS, can we reopen this issue please? |
To reiterate, in case there's a chance: If the presence of this GUID is somehow useful to VS, would you please redirect it into the |
@singhsarab - I don't think this was ever fixed. I have reopened the issue. However the good news is that we have actually fixed this in 15.7 release - this time for sure, I promise :-) We wanted to make this change early in a release to understand all the fall outs since apparently code lens test indicators had a dependency on it. 15.7 Preview 1 will release shortly and that would have this change. We will close this issue after someone in the community has verified that 15.7 release does fix this. |
still happen in 15.6.2 |
Seems to be an issue in 15.6.4 too .... good times 😐 |
@HppZ @mookid8000 Like the team said right above your comments, you should not expect this to work until 15.7. Has anyone installed 15.7 yet? I'm going to play with Blazor when I get a chance, so if no one else wants to confirm the GUID fix I'll do it. |
This has been fixed in 15.7. |
* Update test projects from .NET Core 3.1 (out of support) to .NET 6 (LTS) * Remove `<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />` (see microsoft/vstest#472 (comment)) * Remove `<LangVersion>7.2</LangVersion>` on test projects * Fix `Run_Specifies_Cancellation_Token` which (rightfully) throws when running on .NET 6
Is there any way to get rid of this GUID? Can it come from somewhere else? The SDK? Maybe? A nuget package? Why does this exist? Who it for? Can it be inferred?
The text was updated successfully, but these errors were encountered: