You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
NuProj ReadPackagesConfig task tries to locate package directory path (PackageReferences.PackageDirectoryPath metadata) by probing directories <currentDir>\packages\<package-id>.<package-version> starting from project's directory all the way up.
Later PackageDirectoryPath is used to exclude libraries coming from NuGet dependencies from final package files list (target GetPackageFiles).
I found NuGet dependency library in output package's lib folder while migration NuGet projects from using NuBuild to NuProj. Investigation showed that layout of solution caused the problem: solution file is located in it's own subfolder. packages folder by convention is located near the solution file.
The text was updated successfully, but these errors were encountered:
ivan-sam
changed the title
Exclude dependency package libraries from lib folder
NuProj auto-detection of packages folder is not always working
May 18, 2018
NuProj ReadPackagesConfig task tries to locate package directory path (PackageReferences.PackageDirectoryPath metadata) by probing directories
<currentDir>\packages\<package-id>.<package-version>
starting from project's directory all the way up.Later PackageDirectoryPath is used to exclude libraries coming from NuGet dependencies from final package files list (target GetPackageFiles).
I found NuGet dependency library in output package's lib folder while migration NuGet projects from using NuBuild to NuProj. Investigation showed that layout of solution caused the problem: solution file is located in it's own subfolder. packages folder by convention is located near the solution file.
And here's the code reference that does wrong guessing of packages directory location:
nuproj/src/NuProj.Tasks/ReadPackagesConfig.cs
Lines 66 to 80 in 55350b5
The text was updated successfully, but these errors were encountered: