views:

401

answers:

1

Does anyone have a best practice Project Template for Visual Studio 2008 MASM projects? I don't know why Microsoft shipped VS with MASM but epxect you to use a blank C++ project when there is so much that could have been added by default using a Project Template.

Also, is there a project connector for TFS 2008 for MASM projects as I have been unable to find one?

+3  A: 

Well, after some checking, it appears that VS 2008 at least contains the masm .rules file (the one that gives you all the compilation options):

C:\Program Files\Microsoft Visual Studio 9.0\VC\VCProjectDefaults\masm.rules

The good news is that I currently have a real full fledged masm solution with four projects, including an 100% masm one opened in VS 2008 Express SP1. The masm project is fully integrated into VS 2008 With all the config gadgets etc - no kludge like using an external script etc. So there is masm support in VS2008, it is just not exposed. According to this vs developer blog entry, masm was reintroduced in VS2800 starting at SP1.

The solution is well hidden, but quite easy to reach: it's a mere 4-click operation. Remember, masm was added starting with VS 2008 SP1 (tested here with Express).

  • Open your solution
  • right click on your project node
  • select Custom Build Rules
  • You should see the masm rule there, it's just not enabled by default. Click its checkbox.

Done. masm is now exposed in your project properties, with all its options and everything.

For more, "Visual C++ Custom Build Rule Files Dialog Box" in help:

ms-help://MS.VSCC.v90/MS.msdnexpress.v90.en/dv_vcide/html/ad4f26a5-8373-42ac-9044-8a806a50241e.htm
filofel