Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3931230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:19:56+00:00 2026-05-19T23:19:56+00:00

From what I can tell, the assembly containing the addin must be located in

  • 0

From what I can tell, the assembly containing the addin must be located in C:\Program Files (x86)\NUnit 2.5.7\bin\net-2.0\addins. I think my assembly is being loaded because I have to close NUnit-gui before I can replace the assembly in the addins directory. The problem, however, is that I don’t see any of the effects of the addin (None of the event handlers are being called)

So how do I verify that my addin has been loaded? I’d love to step through with the debugger but I’d be perfectly happy with print line debugging. When I tried doing a File.WriteAllText() the addin failed to load but gave no reason. Also, how do I debug the loading process?

The NUnit docs are helpful, but they’re bare bones at best when it comes to extensibility and there isn’t any intellisense available for classes in NUnit.Core.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:19:56+00:00Added an answer on May 19, 2026 at 11:19 pm

    You should use some tracing library like this one which you can download here.
    Now you can decorate your relevant methods with using statements like this:

    using ApiChange.Infrastructure;
    class MyAddin
    {
       static TypeHashes myType = new TypeHashes(typeof(MyAddin);
    
       void RelevantMethod()
       {
           using (Tracer t = new Tracer(myType, "RelevantMethod"))
           {
               ....
               if(bLoaded == false)
                 t.Error("Could not load adding because of {0}", reason);
           }
       }
    }
    

    Then you can enable tracing via the environment variable _TRACE

    set _Trace=debugoutput
    

    DebugOutput can be viewed with the SysInternals tool DbgView (no attach simply start it and watch the traces).
    Or you trace to a file

    set _Trace=file
    

    The trace file is located where the executable is e.g. Nunit.exe.txt. If you set _TRACE to some random string it will trace the help to console and OutputDebugString to give you help.

    Why this trace library? It is actually the ONLY one which is able to trace any exception when your method is left. This does work when the method contains using statements for tracing like the one above. If it is actually your fault that NUnit does choose to ignore your plugin you can find out now.
    The output will look like this:

    * ApiChange.IntegrationTests.Diagnostics.TracingTests.Demo_Show_Leaving_Trace_With_Exception
    18:57:46.665 03064/05180 <{{ > ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeMethod
    18:57:46.668 03064/05180 <{{ > ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeOtherMethod
    18:57:46.670 03064/05180 < }}< ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeOtherMethod Exception thrown: System.NotImplementedException: Hi this a fault
    at ApiChange.IntegrationTests.Diagnostics.TracingTests.FaultyMethod()
    at ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeOtherMethod()
    at ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeMethod()
    at ApiChange.IntegrationTests.Diagnostics.TracingTests.Demo_Show_Leaving_Trace_With_Exception()
    18:57:46.670 03064/05180 < }}< ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeOtherMethod Duration 2ms
    18:57:46.689 03064/05180 < }}< ApiChange.IntegrationTests.Diagnostics.TracingTests.SomeMethod Duration 24ms

    That should make it easy to find out why your Addin was not used at all. And you do not need a debugger ;-).

    Yours,
    Alois Kraus

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I tell my .NET application where to look for a particular assembly
How can I tell from the assembly name, or assembly class (or others like
so from what i can tell, you have to specify artifacts and working directory
NSDecimalNumber is a subclass of NSNumber, and from what I can tell, it implements
i have invoked blackberry calender from my application can anyone tell me how to
From the question you can probably tell that I don't know much about code!
Can anybody tell how to retrieve data from database like that of Facebook's notification
Can anyone tell me how I can download a picture from a URL and
can anyone tell how to access MS SQL Server from objective c programatically
How can I tell if return() was called from within the included file. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.