Support for Central Package Management
See original GitHub issueIn April Microsoft introduced Central Package Management. The current version (2.4) does not produce any result when using CPM.
Are there any plans to support CPM and if so, when?
We also tried the 3.0.0-alpha5 and ran 4into an exception:
dotnet-project-licenses -i .\src\<ProjectName>\<ProjectFile>.csproj
System.ArgumentException: Value cannot be null or an empty string. (Parameter 'value')
at NuGet.Versioning.NuGetVersion.Parse(String value)
at NuGet.Versioning.NuGetVersion..ctor(String version)
at NuGetUtility.Wrapper.NuGetWrapper.Versioning.WrappedNuGetVersion..ctor(String version) in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/Wrapper/NuGetWrapper/Versioning/WrappedNuGetVersion.cs:line 16
at NuGetUtility.Wrapper.MsBuildWrapper.MsBuildAbstraction.<>c.<GetPackageReferencesFromProjectForFramework>b__2_1(ITaskItem p) in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/Wrapper/MsBuildWrapper/MsBuildAbstraction.cs:line 33
at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at NuGetUtility.ReferencedPackagesReader.ReferencedPackageReader.IsDirectlyReferenced(ILockFileLibrary library, IEnumerable`1 directlyReferencedPackages) in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs:line 88
at NuGetUtility.ReferencedPackagesReader.ReferencedPackageReader.<>c__DisplayClass8_0.<GetReferencedLibrariesForTarget>b__1(ILockFileLibrary l) in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs:line 74
at System.Linq.Utilities.<>c__DisplayClass1_0`1.<CombinePredicates>b__0(TSource x)
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at NuGetUtility.Extensions.HashSetExtension.AddRange[T](HashSet`1 source, IEnumerable`1 items) in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/Extensions/HashSetExtension.cs:line 15
at NuGetUtility.ReferencedPackagesReader.ReferencedPackageReader.GetInstalledPackagesFromAssetsFile(Boolean includeTransitive, IProject project) in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/ReferencedPackagesReader/ReferencedPackageReader.cs:line 52
at NuGetUtility.Program.OnExecuteAsync() in /home/runner/work/nuget-license/nuget-license/src/NuGetUtility/Program.cs:line 0
Issue Analytics
- State:
- Created a year ago
- Comments:12
Top Results From Across the Web
Introducing Central Package Management - The NuGet Blog
Central Package Management ... Dependency management is a core feature of NuGet. Managing dependencies for a single project can be easy. Managing ...
Read more >Central Package Management
Manage your dependencies in a central location and how you can get started with central package management.
Read more >Centrally managing NuGet package versions
Central Package Managed Version is supported only for "Package Reference" projects types. Dual feature opt-in and opt-out. A project opted-in ...
Read more >NuGet Central Package Management Comes To JetBrains ...
CPM allows developers to manage NuGet dependencies in a .NET solution from a central location. This can simplify the upgrade process of ...
Read more >Central Package Management for .NET Projects
It's a way of controlling versions of NuGet packages in a centralized location. This solution follows the modern pattern of using Directory.*.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jdrst I just opened a PR implementing one of your requests: #144
The new version is in alpha state on purpose. Many features of the original are still missing. The goal here was to move to a more sustainable base (using microsofts implementation for retreiving nuget information). Another goal was to evaluate which features of the original were actively used to include them bit by bit instead of just moving everything over. Feel free to create issues for the missing features so that they can be tracked seperately.