Code Coverage by Clover.NET

NLog and VS2008

View: New views
6 Messages — Rating Filter:   Alert me  

NLog and VS2008

by Some user :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Does NLog supports VS2008?  I try to install NLog and open my VS2008, but cannot find any templates as shown on Tutorial.  Is it possible to use NLog on VS2008 manually?

Re: NLog and VS2008

by michel_a :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Works like a charm. Even the template will come along if you upgrade your VS2005 settings and customizations to your VS2008 (an option when installing).

/Michel

Re: NLog and VS2008

by Boersnoes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Everything seems to work here, except that the Intellisense seems broken for the app.config files.
I did include the namespace references as described in the documentation.
The project that contains the app.config used to work perfectly in vs2005. It still compiles and runs, but the intellisence is gone.

Anyone noticed/solved that problem?

Re: NLog and VS2008

by Jaroslaw_Kowalski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Put NLog.xsd in

"C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas"

This will be fixed in next release (no date is known at this point, but I'm hoping to find some time to work on it).

Re: NLog and VS2008 for .Net 3.5

by Nivedan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
Would someone be able to let me know if NLog integrates with .net 3.5 and the client being Visual Studio 2008
Steps I have taken:

1.Downloaded Nlog 1.0.
2.Ran the nlog-1.0-setup.exe and the nlog-1.0-setup-debug.exe
3.Created a web(file) project and added reference to the following NLog Com Interop for .net 2.0, Nlog for .Net 2.0  and Nlog for Unmanaged c/c++
4. When I now said Add New Item - I did not find any templates.

Appreciate any reference that helps.

Thank you



Re: NLog and VS2008 for .Net 3.5

by Boersnoes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thx Jaroslaw, the new xsd location fix works.

Nivedan: you prbly only need a ref to Nlog for .net 2.0 except if you have a particular requirement in your project to have interop/C.

The templates and intellisense seem broken because the location of the template files have changed, but the intellisense can be fixed as posted in the previous reply.

But even without those it is perfectly possible to work with NLog.
The intellisense and templates are just helping hands ;)

Basically these are the steps to take:
 1) DL latest Nlog + install;
 2) Open/Create new .net projectµ
 3) Add ref to NLog lib
 4) Init your logger e.g.:
        private void InitLog()
        {
            logger = LogManager.GetLogger("MyModuleName");
        }
 6) Add app.config file and add lines like described in http://www.nlog-project.org/config.html
 7) Log like so: logger.Warn("All your base are belong to us");