How do I get the MSBuild task to show up in the Visual Studio project output?

后端 未结 3 2012
星月不相逢
星月不相逢 2020-12-29 19:12

I\'m trying to printf debug my Visual Studio project file by spewing messages to the console like this:


  

        
3条回答
  •  独厮守ぢ
    2020-12-29 20:01

    For anyone reading this with MSBuild 16, bear in mind that you can't use message at the project level. You now need to first define InitialTargets

    And then create a task to place the message in:

      
          
      
    

提交回复
热议问题