question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No packages found in hierarchical NuGet local folder

See original GitHub issue

Description

I have a local folder that stores internally-developed NuGet packages. NuGetForUnity locates this folder (it doesn’t issue any errors stating that the directory cannot be found, which is what happens if I deliberately enter an invalid path), but doesn’t list any of the packages it contains.

The NuGet.config file (as populated through the Edit/Preferences/NuGet form) is as follows:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="NuGet" value="http://www.nuget.org/api/v2/" />
    <add key="Internal" value="%HOMEDRIVE%%HOMEPATH%\NuGet" />
  </packageSources>
  <disabledPackageSources />
  <packageSourceCredentials />
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
  <config>
    <add key="repositoryPath" value="./Packages" />
    <add key="verbose" value="true" />
    <add key="InstallFromCache" value="false" />
    <add key="ReadOnlyPackageFiles" value="false" />
  </config>
</configuration>

Note that I’ve tried changing the order of the repos in packageSources, to no avail.

We publish to this folder using both the nuget add and dotnet nuget push CLI commands, and can access them through NuGet in Visual Studio and Rider, so there’s no issue with the local folder repo organization itself.

  • NuGet Package: n/a
  • NuGetForUnity Version: 3.0.5
  • Unity Version: 2021.3.14f1
  • Operating System: Windows 10 Enterprise 22H2.

Any thoughts?

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JoC0decommented, Jan 11, 2023

@Facsimiler thanks for the “willing” but I don’t need help with this feature, it is “simple”.

0reactions
mpsbauercommented, Jan 19, 2023

I’m also looking for this feature. So I’m glad to hear it is on your radar. It is something we will need eventually, but it isn’t urgent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nuget local package source is unable to find package
I'm trying to build some packages for use within my company. I've set up a local folder on my hard drive and added...
Read more >
Setting up Local NuGet Feeds
Local NuGet package feeds are simply hierarchical folder structures on your local network (or even just your own computer) in which you ...
Read more >
Add command for nuget add [or support hierarchical local ...
Consuming local packages can be done by configuring a folder as package source in nuget.config.. e.g. https://stackoverflow.com/questions/ ...
Read more >
nuget package not found when using local nuget.config ...
Files are in the expected folder. I tried to compile the unit test. But that fails: error : This project references NuGet package(s)...
Read more >
How to host your own NuGet Server and Package Feed
This command adds all the packages from a flat folder of nupkgs to the destination package source in a hierarchical layout as described...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found