Reputation: 7555
I have an ASP.Net Core 2.2
application.
MyApp.Sln
The above projects have different libraries(NuGet packages) installed
In .Net framework we used to have packages.config
thats lists the nuget packages with the version details.
Where I can find the same details in .Net Core 2.2 ?
Because different project in one sln should not have different version of NuGet.
Thanks!
Upvotes: 4
Views: 3540
Reputation: 20092
You can follow this link to see options
Default command Running in the project folder - Shows all packages, by default
dotnet list package <optional project path or solution path>
Upvotes: 2
Reputation: 91
You can right Click in Your project in Solution explorer and Edit(For example MyApp.Services.csproj) in this file you will See Packages
Upvotes: 9
Reputation: 469
I don't believe there is anything equal to packages.config in .Net Core (possible reason - it aims to be more modular). You will have to make a little bit of work to solve your issue.
The quickest way to get dependecy graph is to run
dotnet msbuild YourProject.sln /t:GenerateRestoreGraphFile /p:RestoreGraphOutputPath=graph.dg
from terminal. Then you can open it with any editor and view all your dependencies in one file.
If this file isn't enough for you, you will (unfortunately) have to do a little bit of dirty work. See this answer View nuget package dependency hierarchy for some really good solutions, like how to write your own application to print dependencies, or how to use NPM.
Upvotes: 1