Fix restoring NuGet packages for target with multiple projects

Fix restoring `NuGet` packages to run before project build to ensure files are downloaded

#3900
This commit is contained in:
Wojtek Figat
2026-01-22 18:49:47 +01:00
parent 3cfc5db54a
commit ecfd03f79c
5 changed files with 77 additions and 78 deletions

View File

@@ -102,6 +102,11 @@ namespace Flax.Build.NativeCpp
Version = version;
Framework = framework;
}
internal string GetLibPath(string nugetPath)
{
return Path.Combine(nugetPath, Name, Version, "lib", Framework, $"{Name}.dll");
}
}
/// <summary>
@@ -167,7 +172,7 @@ namespace Flax.Build.NativeCpp
/// <summary>
/// The nuget package references.
/// </summary>
public List<NugetPackage> NugetPackageReferences = new List<NugetPackage>();
public HashSet<NugetPackage> NugetPackageReferences = new HashSet<NugetPackage>();
/// <summary>
/// The collection of defines with preprocessing symbol for a source files of this module. Inherited by the modules that include it.