Page 1 of 1

Attribute support in Cobra

PostPosted: Wed Feb 13, 2008 12:15 am
by AlGonzalez
Does cobra support attributes?

If so, where do assembly-level attributes like '[assembly: AssemblyVersion("1.2.5.0")]' go?

Re: Attribute support in Cobra

PostPosted: Thu Feb 14, 2008 1:51 am
by Charles
Yes it supports attributes. See Cobra 0.7.0 release notes.

You should be able to specify assembly level attributes, but I haven't implemented that yet. However, there is another "C# escape hatch" that can be used for this. When you pass files to the Cobra command line, you can include *.cs files and Cobra will simply include them in the final compilation. Like so:
Code: Select all
cobra MyProg.cobra AssemblyAttrs.cs

If you want to see the C# compilation line, throw in a "-v:2".