The docs for attributes show how:

[link:msdn.microsoft.com]

(The language and library reference docs are useful, don't forget them!

[link:msdn.microsoft.com] )

By on 12/21/2009 3:44 PM ()

Thanks for the fast reply. It looks like I had the syntax correct. But, I get the error:

This attribute is not valid for use on this language element. Assembly attributes should be attached to a 'do ()' declaration, if necessary within an F# module.

It looks like it is complaining about not being in a module. (it's just in a namespace.)

This code compiles:

1
2
3
4
5
6
module dummy =

    [<assembly: log4net.Config.XmlConfigurator(Watch=true)>]

    do ()
By on 12/21/2009 4:14 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper