I have a .net 4.71 classic project to which I am trying to add nuget package I generated. When I use the Visual Studio package manager cli or interface files get added to the solution. When I add the package via nuget.exe (4.5.1.4879) those files behave as intended and are not added to the solution, but are only output on build.
What might be causing this and How can I prevent this behavior?
It is the .post-build folder and the *.targets which get added to the solution when using Update-Package or the UI.
nuspec file for package:
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>idhere</id>
<version>0.1.0.0</version>
<authors>names here</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description></description>
</metadata>
<files>
<file src="bin/release/project.dll" target="lib\net461" />
<file src="bin/release/project.pdb" target="lib\net461" />
<file src="*.ps1" target="build" />
<file src=".post-build\*.*" target="build\.post-build" />
<file src="*.targets" target="build" />
<file src="**\*.cs" target="src" exclude="**\bin\**;**\obj**;**\Properties\**"/>
</files>
</package>