Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-14839

Hosted nuget repository ignore the framework version, always returns the .NET Core Version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.10.0
    • Component/s: NuGet
    • Labels:
      None
    • Story Points:
      2
    • Release Note:
      Yes

      Description

      As per issue reported here: 

      https://groups.google.com/a/glists.sonatype.com/forum/?utm_medium=email&utm_source=footer#!msg/nexus-users/f-CDUV-OqAQ/H2EdCL1pBgAJ

      the behavior when installing a package from a hosted repo is different to that from nuget.org, a nexus proxy to nuget.org, using klondike, or using nugetserver.org's implementation.

      In all cases except the nexus hosted repo, the behavior is the same - the others all return the .NET Framework version and it's dependencies whereas the hosted nexus repo returns the .NETCore version and it's dependencies.

      The referenced thread contains a project which will demonstrate the problem but as a minimal example of the problem, create a new empty nexus repo and put only System.Threading.Tasks 4.3.0 in it - you can get that from here: https://www.nuget.org/packages/System.Threading.Tasks/

      You can see that the .Net framework version has no dependencies at all, whereas the .NET Core version has dependencies.

      Now create an empty folder somewhere and in that folder, try to install System.Threading.Tasks and you will see the output as per the nuget-nexus.jpg image I attached.  The package failed to install because of the .NET Core dependencies which are not available in this repo.

      Then try the same thing with a local klondike instance - or indeed with nuget.org, though of course this will have all the dependencies available so you aren't really comparing like with like (ie repositories containing only this single package).

      The attached nuget-klondike.jpg image shows that using the klondike repo, the package was successfully installed.

      I was using the latest nexus-3.6.0-02 from your website.

      https://docs.microsoft.com/en-us/nuget/schema/target-frameworks

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jstephens Joseph Stephens
              Reporter:
              freeranger Tony Butler
              Last Updated By:
              Peter Lynch
              Team:
              Nexus - Formats
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title