Cannot find System.Convert in .Net 5 Core beta2

We recently upgraded the MVC 6 project to beta2, and NetNet complains that it cannot use System.Convert. Can someone tell me where it was moved?

Error Example

My JSON project contains the following for Core:

"aspnetcore50": {
    "dependencies": {
        "System.Runtime": "4.0.20-beta-22416",
        "System.Threading.Tasks": "4.0.10-beta-22416",
        "System.Net.Http": "4.0.0-beta-22416",
        "Newtonsoft.Json": "6.0.6.0",
        "System.Collections": "4.0.10-beta-22416"
    }
}
+4
source share
1 answer

You can use the unofficial package search site to find out which package has a specific API.

System.Convertis in System.Runtime.Extensionsif you are using CoreCLR (aspnetcore50)

+7
source

All Articles