How do you set a relative path for a file-based package source with NuGet?

It looks like this is now supported.

http://nuget.codeplex.com/workitem/2810

  1. Put a file called nuget.config in the root of your solution (next to packages folder and solution file) containing:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <packageSources>
        <add key="Local" value="packages-local" />
      </packageSources>
    </configuration>
    
  2. Build you packages to the packages-local folder.

  3. The packages in this folder will be available to add to other projects in the solution. (You may need to restart VS or at least close-reopen your solution for the config to be picked up).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)