Skip to content

[BUG]: feed-Prefix in DotNetCoreCLIV2 not consistent #21431

@Patrick-3000

Description

@Patrick-3000

New issue checklist

Task name

No response

Task version

No response

Issue Description

DotNetCoreCLIV2 adds feed- prefix in temporary Nuget.config file.

However, it seems that this prefix is added only for the <packageSources> not, but not for the <packageSources> node inside of <packageSourceMappings>.

As a result, the corresponding feed is not found during nuget restore.

Image
J:\1\xx.csproj error NU1100: Unable to resolve 'Y (>= 2.1.119)' for 'net8.0-windows7.0'. PackageSourceMapping is enabled, the following source(s) were not considered: feed-DevOpsCloud, nuget.org. [J:\1\s\Z.slnx]

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows Server 2019

Relevant log output

J:\1\xx.csproj error NU1100: Unable to resolve 'Y (>= 2.1.119)' for 'net8.0-windows7.0'. PackageSourceMapping is enabled, the following source(s) were not considered: feed-DevOpsCloud, nuget.org. [J:\1\s\Z.slnx]

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions