There is a list with links to download files (for example, https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2002.xml.zip ). I need to download all the files from this list to a specific folder. How to do it on C # Core? I believe that you need to use HttpClient () instead of the previously used WebClient ().
On older versions of C #, you could do this:
var сlient = new WebClient(); string path = "some/path/to/download"; webClient.DownloadFile("https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2002.xml.zip", path); How to perform download in C # Core? It does not support the WebClient () class.