msbuild says ‘target does not exist’

I don’t know what is going wrong but…

How to fix it

  1. Open the solution in Visual Studio
  2. Remove every targets except the target you want to build with ‘msbuild’
  3. save the solution
  4. Add all the targets just removed before
  5. save the solution

This makes the order of projects in the solution. Does msbuild fails due to project order?

Leave a comment

Your email address will not be published. Required fields are marked *