New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Package source mapping by adding prefix feed. When executing dotnet restore facing issue, where it is inputting 5times feed as prefix #12328
Comments
Issue is missing Type label, remember to add a Type label |
Issue is missing Type label, remember to add a Type label |
Thank you for filing this issue. If I understand correctly are refering this bold hightlighted part feed-feed-feed-feed-feed |
Using Azure CI yaml pipeline. In pipipeline approx 5 dotnet restore task there. Remaining four works fine except this task check agent pool is Linux scaleset. Remaining all restore are working fine |
@crsreddy1447 Please avoid using the They said they're looking to deprecate these commands and recommend customers use script tasks to invole |
But the ticket microsoft/azure-pipelines-tasks#15542 (comment) is still in open. So we used this method by using feed as prefix. We have many dependencies on this. If we change to intead of dotnet restore lot many changes we have to do. Also in dotnet core cli we can use wildcard way ie(**/*.netcore.csproj) but in powershell we cannot use. Any way to use that? |
Could you just iterate through all *.csproj in powershell to restore one by one? Even though microsoft/azure-pipelines-tasks#15542 (comment) is just single line of powershell command, you can do multiple lines of advanced powershell commands in 1 task. |
I am getting error MSBUILD : error MSB1009: Project file does not exist. Finally issue resolved my removing dotNet restore task which was failing |
Can you create a solution file, and add all your projects to that solution, so no file globbing is needed in the
For better or worse, the NuGet team does not own or maintain the Azure DevOps tasks. Feel free to upvote (add a 👍 reaction) to the issue, or comment on it, but we don't have permissions to change their code. At best we can create a pull request, but that requires us to understand how it works, and re-implement their private feed permissions in a different way. Otherwise, we need to wait until they deem the issue important enough to prioritize and schedule in a sprint. |
This issue has been automatically marked as stale because we have not received a response in 14 days. It will be closed if no further activity occurs within another 14 days of this comment. |
Issue was resolved we followed prefix method. Due to some internal props file we faced the issue. Now it was resolved. Thanks for all the responses |
note that NuGet is more efficient when it runs on a solution, so it can restore projects in parallel, and cache package information in-memory, rather than running once per project. Another problem with the "run restore once per project file" approach is that NuGet will automatically restore referenced projects, meaning that every ProjectReference will cause multiple restores. The second and subsequent restore of a project will be fast, a "no-op" restore, but not needing to check for a no-op restore is faster than a doing a no-op restore. I suggest creating a solution file and restoring that solution. |
Issue with Package source mapping by adding prefix feed. When executing dotnet restore facing issue, where it is inputting 5times feed as prefix
error NU1100: Unable to resolve 'Intergraph.TestTools.Clipper.UnitTesting (>= 1.0.8)' for 'net6.0'. PackageSourceMapping is enabled, the following source(s) were not considered: feed-feed-hexagonppmclipper, feed-feed-hexagonppmclipperfeaturebranch, feed-feed-SDXInternal, nuget.org, PPM. [/agent/_work/1/s/SPF/Services/xxxxxxxxxxxxxxxxxxx.netcore.csproj
Common.netstandard (>= 1.0.37)' for 'net6.0'. PackageSourceMapping is enabled, the following source(s) were not considered: feed-feed-feed-feed-feed-hxxxxxxxper, feed-feed-feed-feed-feed-hxxxxxrfeaturebranch, feed-feed-feed-feed-feed-SxxInternal, nuget.org, PPM.
these kind of error I am facing. I am using Dotnet restore in Linux Azure virtual machine scale set pool as agent machine.
Declared feeds in this way as per this link #11406
Please help me how to resolve this issue
The text was updated successfully, but these errors were encountered: