Last post Sep 14, 2017 02:12 PM by gcstudent1
Sep 13, 2017 07:30 PM|gcstudent1|LINK
When I deploy direct to Azure from Visual Studio 2017, my app runs fine. But I need to deploy from GitHub. When I do, it fails and the activity log shows the same error for most of the references:
All packages listed in packages.config are already installed. D:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly...
I've deployed many apps to Azure from GitHub before and never had any issue. I assume it may be related to the deployment of the packages. What is weird is some of my colleagues did the exact same steps as I did and their apps deploy fine. I tried the
template VS gitignore thinking maybe it would not push my packages and Azure would use NuGet but that hasn't solved the problem. Advice is appreciated.
Sep 14, 2017 05:46 AM|Zhi Lv - MSFT|LINK
You could try to re-upload web app files to the GitHub and re-deploy the web app from GitHub to Azure.
Sep 14, 2017 02:12 PM|gcstudent1|LINK
Thanks for the reply. I've tried this, even to a new repository with no luck.
I did fix it this way:
It seems without FIRST having the vs boilerplate .gitignore, the git commits include the packages folder and this causes all sorts of problems when deploying to Azure. Publishing straight from VS to Azure does avoid this, but then it removes the benefits
of using GitHub and continuous deployment.