Intellisense for NLog

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Intellisense for NLog

Jarek Kowalski
Administrator
Hi!

I've added support for Intellisense to NLog. It helps you by suggesting
target names/parameters and enumeration members when working with Visual
Studio. Works very well with VS2005 and validates almost everything
(except conditions and target names in rules).

Here's the Flash demo created using Wink.

http://www.nlog-project.org/demos/NLogDemo1.html

(please be patient, this is 17 MB video, I'll clean it up in the future).

There are 2 small changes required in your config files to make intellisense
work:

1. Add required namespace declarations to the <nlog> section:

<nlog ... xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

2. Change all occurences of

<target type="..." />

to

<target xsi:type="..." />

Get and run the latest installer from

http://www.nlog-project.org/snapshots/

OR get the binary package for the appropriate platform and place
"bin/NLog.xsd" in the appropriate directory, depending on your VS.NET
version:

"C:\Program Files\Microsoft Visual Studio
.NET\Common7\Packages\schemas\xml\nlog.xsd"
"C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\xml\nlog.xsd"
"C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\nlog.xsd"

Schema generator is based on reflection and is rather quick and dirty.
Because it's relatively new, there may be some issues with valid
configurations not passing schema validation in VS and so on.

Report any issues here.

Jarek




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list
NLog Blog