MSBUILD advice

[Migrated content. Thread originally posted on 14 March 2011]

Hi to all those MSBUILD experts out there ... I would like to create a new VS2010 project template that would contain multiple COBOL programs that would each be compiled into a seperate (native) DLL and would really appreciate some guidance. Has anyone done this out there, or am I finding myself (yet again) on the bleeding edge and need to start from a blank template?!

Thanks,
Michael
Parents
  • Verified Answer

    Hi Michael, it's interesting that you should pose this question, as this is exactly what we ended up adding to the Mainframe SubSystem(MSS) project type that you get in the Studio/VS2008 product. The Visual COBOL build is essentially the same, so this property is still present though unused.

    How we build is defined by our MSBuild targets file, you'll find it in "Program Files\MSBuild\Micro Focus\Visual COBOL\v1.0\MicroFocus.COBOL.Targets" If you edit the .cblproj file and add:

    <LinkMultiDlls>true</LinkMultiDlls>

    to the main property group this will probably still work. I should caveat this by saying this is not documented and may change in a future release, especially if this becomes available to other project types. I assume though, that since you asked the question, you'd like to see this feature available?

Reply
  • Verified Answer

    Hi Michael, it's interesting that you should pose this question, as this is exactly what we ended up adding to the Mainframe SubSystem(MSS) project type that you get in the Studio/VS2008 product. The Visual COBOL build is essentially the same, so this property is still present though unused.

    How we build is defined by our MSBuild targets file, you'll find it in "Program Files\MSBuild\Micro Focus\Visual COBOL\v1.0\MicroFocus.COBOL.Targets" If you edit the .cblproj file and add:

    <LinkMultiDlls>true</LinkMultiDlls>

    to the main property group this will probably still work. I should caveat this by saying this is not documented and may change in a future release, especially if this becomes available to other project types. I assume though, that since you asked the question, you'd like to see this feature available?

Children
No Data