What I would basically like to know is if there is a way of knowing which versions of all the NuGet packages my project depends on/requires, so that I can configure each one accordingly. A PowerShell command that would provide the above would be great.
I receive the below error when I build my solution:
Severity Code Description Project File Line Suppression State Error The "Csc" task failed unexpectedly. System.TypeLoadException: Could not load type 'System.ValueTuple`3' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at Microsoft.CodeAnalysis.BuildTasks.ManagedToolTask.GenerateCommandLineCommands() at Microsoft.Build.Utilities.ToolTask.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() NBC.CMS.Cms
If you are using Visual Studio, you can quickly see the Dependencies and what version they are expected by the following:
.NET-Framework Solutions
.NET-Core
If you are looking for a CLI solution, try the following solutions.
Visual Studio
PowerShell (outside of Visual Studio)
Some answers referenced here:
Get-Module -listavailable
然后找到版本
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.