Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 660
Liam Avatar asked May 23 '17 11:05

Liam


1 Answers

For me help to build and publish my solution via msbuild. you should create a publish profile in visual studio, before run msbuild.

open cmd and run the next command:

"c:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin" d:\VMC\VMC.sln /p:DeployOnBuild=true /p:PublishProfile="FolderProfile"

also you should replace path to msbuid(if it is different on you computer) and solution.

For me it helps.

like image 190
Andrey Ravkov Avatar answered Oct 21 '22 23:10

Andrey Ravkov