We added a nuget.config
file to the NuGet restore task
in our Azure DevOps Pipeline
. We used the "browse" feature to set the path for it, but when we run the pipeline we get the error "Error: Not found nugetConfigPath"
. This seems to indicate the path we selected is incorrect. We have re-checked the package source paths in the .config file and have confirmed they are correct.
So far we have been unable to locate any documentation regarding this issue.
We are using TFVC.
This is the path Azure DevOps assigns when we use the "browse" feature:
$/PCS Development/Forms/PCS.Forms.Integration/nuget.config
We switched the path to a different solution in a different directory and the NuGet restore task works. Then we switched it back to the solution we need to build with the same path reference $/PCS Development/Forms/PCS.Forms.Integration/nuget.config
and it works. Seems like the issue is related to DevOps not always recognizing the path of the solution we need to build.
After finding the work around for the Nuget restore task we received the same pathing error in the Build task. In the build task the direct (absolute) reference D:\a\11\s\Forms\PCS.Forms.Integration\PCS.Forms.Integration.sln instead of the $/PCS Development/Forms/PCS.Forms.Integration/PCS.Forms.Integration.sln which is not working (but is working in the Nuget restore task now).
An issue has been opened with Microsoft at https://github.com/microsoft/azure-pipelines-tasks/issues/17033
Are we doing some thing wrong in the way we create the path references or is this a bug?