Up until two days ago, I was able to use Visual Studio 2010\'s \"Publish Web\" option by right clicking on my project and clicking the publish button on the context menu. No
Just rename Packages folder of Nugets. Visual Studio would automatically get required packages and build would get successful and Publish would work too.
i have also faced this issue while i was publishing my site, in my case reference was added but in bin folder it was not there so please install again which reference is missing on output.i hope it helps
This worked for me: Manually delete the obj folder, rebuild, then publish. Somehow some permission in the obj folder got stuck, and deleting/recreating the folder cleared the error.