How to use MSBuild to control what gets built?

Answered How to use MSBuild to control what gets built?

  • יום שלישי 10 יולי 2012 18:38
     
     

    Hi,

    I have several projects that are dependent upon each other. When I build one, the others that the first is dependent on also gets built. However, I want to know if there's a way to configure MSBuild so that I have control of the building. In other words, I don't want to build all the dependent projects along with the one I originally had built. If anyone could help me, it would be much appreciated.

    Thanks

כל התגובות

  • יום רביעי 11 יולי 2012 05:40
     
     תשובה

    Hi lcprk,

    Of course you can.

    Create a Csc target and sources="files you want to compile".

    Run msbuild like: msbuild name.*proj /t (your target name).

    Best regards,

    Disley

  • יום רביעי 18 יולי 2012 06:52
    מנחה דיון
     
     

    Hi lcprk,

    I will mark Disley's reply as answer.

    If you feel it is not the answer you want, please unmark it.

    Thank you for your understanding and support.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us