All build submissions in a build must use project instances originating from the same project collection

Viewed 763

I am trying to publish a .NET project in VS-2017. When I publish I get the error:

All build submissions in a build must use project instances originating from the same project collection.

The project builds fine in both release and debug mode. The same thing happens when trying to publish as debug. Any ideas how I can get more information on what is wrong?

5 Answers

The VS2017 project that I previously published, gave the same error and taking these steps solved the issue for me:

  • Tried to publish in Debug (did not resolve)
  • Deleted obj folder (did not resolve)
  • Manually deleted files in target path (did not resolve)
  • Ran VS as Admin (did not resolve)
  • Cleaned solution (RESOLVED).

The best solution I have seen to this is to update to VS 2017 15.5.2 or greater. This was a VS bug. Rather than using workarounds just upgrade.

Here is a current update link: https://www.visualstudio.com/vs/

Related