Disclaimer: This is a .Net Framework specific problem, that doesn't happen in .Net Core.
I am currently wokring on a project, that works as an AddIn of a larger project. I'd like to set the output path of my project to the AddIn folder of the larger project then start the larger project with the debug-properties of my project, so I don't have to copy and attach to project each time manually.
Any reference I have is shared with and managed from the larger project, which means i don't have (and should not) copy them to the AddIn Folder.
I included code from this answer to my .csproj (VS 19/new format)
<ItemDefinitionGroup>
<Reference>
<Private>False</Private>
</Reference>
<ProjectReference>
<Private>False</Private>
</ProjectReference>
</ItemDefinitionGroup>
to exclude project- and regular references, but in .Net Framework all .dlls from my Nuget packages are also copied to the output path. I was looking for a way to disable that too, but haven't found one.
Is there a way to stop .dlls from Nuget packages to be copied to the output path in .Net Framework?