Forums

Attribute support in Cobra

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Attribute support in Cobra

Postby AlGonzalez » Wed Feb 13, 2008 12:15 am

Does cobra support attributes?

If so, where do assembly-level attributes like '[assembly: AssemblyVersion("1.2.5.0")]' go?
AlGonzalez
 
Posts: 13
Location: Greenville, SC - USA

Re: Attribute support in Cobra

Postby Charles » Thu Feb 14, 2008 1:51 am

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".
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 92 guests

cron