Closed bradleypatton closed 5 years ago
i ended up here while trying to solve the same error message. The reason i got this same error was that i checked apply migrations but didnt' provide the connection string to the azure sql db. Once i grabbed that from Azure and put it in, the publish worked for me.
This is not the right repo for this issue.
To Get the quickest answer to your questions, please file a VS Feedback ticket and this issue will be triaged to the appropriate team.
i ended up here while trying to solve the same error message. The reason i got this same error was that i checked apply migrations but didnt' provide the connection string to the azure sql db. Once i grabbed that from Azure and put it in, the publish worked for me.
Thank you!
Publishing an ASP.NET Core web app to Azure with database migrations fails with the following error in Visual Studio
From the cmd line:
Here's the weird thing its works fine if I comment out the local database connection string and apply the update directly using the connection string to the Azure SQL database (ie connect to the database directly in code):
Things I've done/checked:
Environment data
msbuild /version
output: Microsoft (R) Build Engine version 15.7.179.6572 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.15.7.179.6572
OS info: Windows 10
dontnet --version 2.1.300