how to include .cs files in the wsp

Nov 16, 2008 at 11:20 PM

I am trying to include .cs file in the wsp file, but for some reason wspbuilder is ignoring it. My files are located in this structure
  • 12/Templates/Layouts/MyProject/Test.ascx
  • 12/Templates/Layouts/MyProject/Test.ascx.cs.
Running wspbuilder picks up test.ascx but not test.ascx.cs.

Please help.

Nov 16, 2008 at 11:39 PM
Never mind, I figure out the issue. I should have looked at the documentation first. 

I just had to call wspbuilder with -includefiletype flag. "wspbuilder -includetypes cs".
Apr 9, 2009 at 8:29 PM
The actual flag should be "-Includefiletypes".  It is case sensitive, as well as requires the trailing s.