Skip to content
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

Scope package linking to specific consumer project or solution #8

Open
felix-b opened this issue May 9, 2019 · 2 comments
Open

Scope package linking to specific consumer project or solution #8

felix-b opened this issue May 9, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@felix-b
Copy link
Member

felix-b commented May 9, 2019

Currently, the effect of symbolic link is machine-wide. It is not per consuming project/solution.

@felix-b felix-b added the enhancement New feature or request label May 9, 2019
@felix-b
Copy link
Member Author

felix-b commented May 28, 2019

This will probably work so for .NET Framework consumer projects (packages.config style), because packages are restored per solution (which closely resembles node_modules).

For SDK-style projects (PackageReference), the packages are used directly from user-level cache. This makes scoping per consumer project/solution impossible.

@Blackclaws
Copy link

This is actually easily possible to do. Create a local nuget.config file setting the globalPackage directory to a local one:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="globalPackagesFolder" value="./packages" />
  </config>
</configuration>

This is then relative to the nuget.config file and nulink correctly picks it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants