Set source and global package path for project via custom target in a nuget package #11225
Unanswered
nisha-ashwin
asked this question in
Q&A
Replies: 1 comment
-
Thank you for asking this question. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am creating a nuget package which will set the nuget source and global packages path for project which consumes it.
I want to set this property before the restore target so that the packages are restored from the said sources and downloaded at the said packages folder.
I have tried to call a custom target before the _GetRestoreSettings target to set the properties. But it doesn't get called by the project that is consuming my custom target nuget package.
Could anyone tell me when should I call my custom target to set the above properties? I am building the project using dotnet cli.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions