Skip to content

dotnet tool exec doesn't seem to respect global package settings in nuget.config #49491

@baronfel

Description

@baronfel

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

In a repo with the following nuget config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="globalPackagesFolder" value="./packages" />
  </config>
  <packageSources>
    <!--To inherit the global NuGet package sources remove the <clear/> line below -->
    <clear />
    <add key="nuget" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

I run dotnet tool exec dotnetsay "hello, world", and after execution the ./packages folder has no content, while C:\Users\chusk\.nuget\packages\dotnetsay does.

Exceptions (if any)

Further technical details

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions