none
How can I create a project that compiles a source file with CL and a custom task and have both property sheets available? RRS feed

  • Question

  • I currently have a project where a single source file needs to be compiled with both the CL task and my own task MyCustomTask . The project uses a build customisation (.xml .props .targets), but at the moment I can only use either 'C/C++ Compiler' or 'MyCustomTask' as the item type for a source file. This means that I cannot access any of the original CLCompile properties if I am conmpiling a source file for MyCustomTask.

    I had the idea to call the CL task from the MyCustomTask target, although I cannot access any of the properties in CLCompile.

    Does anyone know if there is a way to compile the same source file as two item types or with two tasks and still keep the property pages from both.

    Thanks in advance,

    Gordon


    Thursday, November 29, 2012 6:03 PM

All replies

  • Hi there--

    It looks like that you have erroneously posted your question in a user forum dedicated to customization of Project server/ MS project Client , an enterprise project management tool.

    I would suggest that you mention the technology in thread so that we can help to findout the correct forum for you or you may search the correct forum for your question:
    http://social.technet.microsoft.com/Forums/en/categories

    You can also post the question to find :
    http://social.technet.microsoft.com/Forums/en/whatforum/threads

    Hope this helps.  


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Friday, November 30, 2012 6:14 AM
  • Hi Amit,

    I was looking for the forum for MSBuild but I couldn't find it, sorry I just realised I didn't actually mention MSBuild anywhere in the post.

    Thanks,

    Gordon

    Friday, November 30, 2012 10:01 AM
  • Hi Gordon,

    No problem. Happy to help :)

    You may need to post the question in MS build forums:
    http://social.msdn.microsoft.com/Forums/en-US/msbuild/threads

    You may also check the Team foundation server incase if you using the VS2010;
    http://social.msdn.microsoft.com/Forums/en-US/category/visualstudio

    Hope that helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Friday, November 30, 2012 10:21 AM