.NET Core 3.1 System.Data.SqlClient is not supported on this platform

.Net.Core 3.1

string connectionString = @"Data Source=DESKTOP-IOHENDV\SQLEXPRESS;Initial Catalog=DataBase;Integrated Security=True";
        using (SqlConnection connection = new SqlConnection(connectionString))
        {
            connection.Open();
            SqlCommand command = new SqlCommand();
            command.CommandText = "INSERT INTO accounts (login, email, password) VALUES('"+ login+"', '"+ email+"', '"+ password+"'";
            command.Connection = connection;
        }

При выполнении функции появляется ошибка: Could not load file or assembly 'D:\server\System.Data.SqlClient.resources.dll'. Не удается найти указанный файл. System.Data.SqlClient is not supported on this platform.

Как её исправить?


Ответы (0 шт):