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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With