简体   繁体   中英

Azure deployment: Configuring database dependency throws error "Failed to configure NuGet packages"

I am trying to publish my.NetCore WebAPI with SQL Server database to Azure. - configuring database dependency throws the error "Error Failed to configure NuGet packages. Error Failed to configure dependency Azure SQL Database mssql1."

May I know what causes this error.

在此处输入图片说明

NOTE: Although it known restarting Visual Studio sometimes resolves the issue.

If used, packages.config is typically located in a project root. It's automatically created when the first NuGet operation is run, but can also be created manually before running any commands such as nuget restore.

Projects that use PackageReference do not use packages.config.

Updating Visual Studio to VS 2019 16.11.5

Try to upgrade the NuGet Package Manager to 3.6 and restarted.

Package Manager Console( Tools -> NuGet Package Manager -> Package Manager Console)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM