visualstudio.xunit icon indicating copy to clipboard operation
visualstudio.xunit copied to clipboard

Unmapped warning dialog during restore in VS 2019 when bound to TFS

Open agilenut opened this issue 4 years ago • 0 comments

When creating a test project with a package reference to xunit.runner.visualstudio, we get the following warning dialog complaining that we are attempting to add unmapped items to a source controlled solution: ScreenCapture at Mon Mar 29 15:41:40 EDT 2021

Steps to reproduce:

  • Create a new solution and xUnit project
  • Add solution to source control (TFS)
  • Close solution
  • Delete bin and obj directories in order to force a restore upon open
  • Open solution
  • Observe warning during restore

I've narrowed it down to this package. When I comment out the package reference, the warning does not appear.

Is there a way to prevent this?

I need to have the package installed so that developers can run tests in Visual Studio. But they also complain about these warnings. I do not want to ask developers to choose to always ignore these warnings because they do occasionally help us find issues where other developers have accidentally added items as content in custom nuget packages.

agilenut avatar Mar 30 '21 15:03 agilenut