Giter Site home page Giter Site logo

repro-nuget-feed-auth-issue's Introduction

repro-nuget-feed-auth-issue

The .csproj in repro-nuget-feed-auth-issue has a dependency on the package dependency-a published by repro-nuget-feed-auth-issue-dependency-a.

Setup

  • Create feed internal-sample-feed in your org
  • Replace {your-org} in nuget.configs or whole URL in case of Azure DevOps server
  • Create repositories for the two projects and add the respective code within them
  • Create pipelines based on pipeline.yml within the project folders
  • Publish dependency-a by running its pipeline
  • Run pipeline of the remaining project consuming the published dependency

Problem

Observe that in Azure DevOps Service everything works fine.

Reproduce on Azure DevOps Server 2022.0.1 (AzureDevOpsServer_20231109.3) and observe that the restore within dotnet pack fails with (DotNetCoreCLI task version is 2.202.0, agent version is 3.227.2, latest .NET 6 SDK installed):

error NU1301: Unable to load the service index for source https://pkgs.dev.azure.com/{your-org}/_packaging/internal-sample-feed/nuget/v3/index.json

The issue can be fixed by explicitly running a dotnet restore upfront. We consider this as a workaround as several .NET CLI commands perform an implicit restore which is obviously not working on-prem and because it "just works" in Azure DevOps Service/Cloud. This would mean that we would need to clutter up pipelines with restore steps just before anything (dotnet build, dotnet test, dotnet pack etc.).

repro-nuget-feed-auth-issue's People

Contributors

timmkrause avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.