Мой код работает неправильно.
Код: Выделить всё
string destinationPath = @"C:\path\to\downloaded-file.zip";
string fileUrl = $"https://drive.google.com/file/d/1RP17_BTIla0otW_glMmeoXvFnn4jCBJ9/view?usp=sharing";
using (WebClient client = new WebClient())
{
try
{
Console.WriteLine("Downloading file from Google Drive...");
client.DownloadFile(fileUrl, destinationPath);
Console.WriteLine($"File downloaded successfully to: {destinationPath}");
}
catch (Exception ex)
{
Console.WriteLine("An error occurred: " + ex.Message);
}
}
Я хочу получить zip-файл, загружающий рабочий исходный код.>
Подробнее здесь: https://stackoverflow.com/questions/793 ... -sharp-net
Мобильная версия