Re: Need Feedback: RequiredAddinAttribute
"Charlie Poole" <[email protected]> Wed, 16 Jul 2008 19:34:22 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <009801c8e7b5$a080edc0$6401a8c0@ferrari> |
Hi David, _____ From: David Jeske [mailto:[email protected]] Sent: Wednesday, July 16, 2008 5:35 PM To: Charlie Poole Cc: Charlie Poole; [email protected] Subject: Re: [Nunit-users] Need Feedback: RequiredAddinAttribute On Wed, Jul 16, 2008 at 5:18 PM, Charlie Poole <[email protected]> wrote: That's my inclination, since otherwise I'll spend the next two or three years explaining why it doesn't work as people expect. :-) It will, however, be optional, since some people prefer to live dangerously, based on earlier discussions. Hopefully, those folks will use a category or some such thing instead. Is it possible for an assembly to run with Attributes which reference unresolved assemblies? I would think that the mere appearance of [MyTest] would mean that plugin assembly would have to be present to run the code. I see what you're saying. If [MyTest] compiled, the addin must have been available. However... 1. Tests are sometimes compiled in one place, then execcuted elsewhere. 2. Having an assembly available to be referenced does not necessarily mean that it's properly installed as an addin - although NUnit /could/ try to find and use it in that case. 3. Most important, the canonical implementation of an addin does /not/ put the definition of any special attributes in the same assembly as the addin itself because of reference problems that arise. This could change in 3.0, but is still the recommended pattern for 2.5. So, for all those reasons, it is indeed possible ot have an attribute for which the addin is not available. In the case of [MyTest], the test will simply not be seen and whether anyone notices is an open question. Charlie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users