Visual Studio 2017 Nuget package restore folder name without version

  • Thread starter Thread starter Ken Varn
  • Start date Start date
K

Ken Varn

Guest
I want to consume a Nuget package that contains some native C++ Dlls. I have added the packages to my Visual Studio project and they download without any issues. The problem that I have is the files from the package are placed into a packages folder with each sub-folder under it consisting of the name of the package, followed by the version number. This makes referencing the native C++ DLLs very painful because every time I download a new version of the package, I have to make a change to my project to reference a different folder name in order to find the native DLLs that I need from the package.

Is there any way in Visual Studio in which I can configure Nuget so that it will not put the version number in the package folder name? If not, is there some other method I can use that will place the native DLLs in the output bin folder when I do a build?

Continue reading...
 
Back
Top