Surprising MSB4057 error

I have a solution, MySolution.sln, with several c# project (MyProj.csproj, My.Other.Proj.csproj)

This works:

msbuild MySolution.sln /nologo /t:MyProj

But this fails with MSB4057 (the target does not exist in the project):

msbuild MySolution.sln /nologo /t:My.Other.Proj

So, what could possibly be the difference between the two projects?

Continue reading

Advertisements