When I add a dependency to XUnit.Runner.VisualStudio to a project that generates a Nuget package with a Content folder, it adds three dlls to the Content folder of the generated Nuget package. Why is this, and how can I stop it?
So I have a nuget package we use to set up test projects for our company. I combines various internal and external tools and dependencies so that setting up new test projects only involves installing a single nuget package.
Recently I've been updating it to use XUnit 2.0.0.
Seeing that the newer XUnit templates reference XUnit.Runner.VisualStudio, I referenced it as well. Once I did that I noticed that the generated Nuget package had 3 dlls added to the Content folder:
Here is the only portion of the nuspec file outside of the meta-data:
<file src="Content\AutoDataAttribute.cs.pp" target="content" />
If I remove this line so that no content folder is generated the dlls are not added.
I build the package using this command:
nuget pack $projectFile -Build -Symbols -IncludeReferencedProjects -Prop Configuration=Release -OutputDirectory $projectPath\bin\Release
I'm stumped on this one. Why would xunit.visualstudio.runners add dlls to the content folder? Why would it only do it when I'm generating a content folder and adding a file to it with an explicit reference?