Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to get Nuget to install DLL in specific folder?

$
0
0

I am creating a NuGet package that is being compiled and stored in the artifacts in Azure DevOps. One requirement is that the developers want the installed DLL to reside in a specific folder in the project, e.g. bin\model.In the NuSpec file i defeind added the files section where i defined the file an its location as such:When the Nuget package is installed in a project where the Package Management is set to Packages.config, the DLL ends up in the desired location.When I change the Package Management to PackageReference, the DLL does not show up in any folder - it does appear in the references though.I added an install.ps1 file to the root of the project and another file clause in the NuSpec file and i see that the install.ps1 file is in the NuPkg in the root directory, where I would expect to see it (i think).When the package is installed, the install.ps1 file is not executed - i know because i put some echos in the file to verify that it runs and i do not see any messages.Is there anything that I am leaving out? or is this just not possible to do in the PackageReference configuration?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>