We changed our Azure pipeline from (legacy) csproj pack to nuget pack. In the process, it seems that a .dll which is located at the root folder of my project isn't copied despite it being mentioned in the .target file. From what I've read it should work without extra referencing the (.dll) file in the nuspec itself. Regardless, in both cases my "PreserveNewest" option, of that file, in the target isn't recognized/applied however.
My nuspec (part) looks like this:
The targets:
CertEnroll_Interop.dll PreserveNewest
And the csproj of the project which installed my package:
Now my question are why doesn't the "settings" for the .dll apply and is a reference in the nuspec required?
This is for a Net Framework 4.8 package and the .dll build is set to "content".