Do you have any idea when the release for 3.0 will be? i'm currently in the process of integrating it into several of our projects at work and was hoping the nuget package would have the release soon.
Matthew Brubaker [email protected] (785) 215-7061 2011/9/30 Krzysztof Koźmic <[email protected]> > Hi Matthew, > > you're right, it's not in breakingchanges.txt. > > I'll add that for beta 2... it must have slipped through the cracks. Thanks > for pointing that out. > > cheers, > Krzysztof > > > On 30/09/2011 1:14 PM, Matthew Brubaker wrote: > > Thanks, I set FallbackToResolveByTypeIfNameNotFound to true and that fixed > the problem. I thought I had searched through all of the breaking changes > that were included in the nuget package for Castle.Windsor.3.0.0.2001and > couldn't find anything relating to that property. > > > > Matthew Brubaker > [email protected] > (785) 215-7061 > > > 2011/9/29 Krzysztof Koźmic <[email protected]> > >> Ok, that's fine. >> >> There are two parts to it. First of all the exception message you're >> getting is misleading. In beta 2 and further on its actually: >> >> Castle.MicroKernel.ComponentNotFoundException : Requested component named >> 'watching.._bob.txt' was not found in the container. Did you forget to >> register it? >> There is one other component supporting requested service >> 'Foo.Bar.IFileWatcher'. Is it what you were looking for? >> >> Second part of the issue is, as mentioned in the exception message, you're >> trying to resolve the component by name, and there's no component for that >> name. >> >> This is a breaking change from v2.5.3 and as described in >> breakingchanges.txt, if you want to fallback to resolving by type when you >> can't resolve by name set >> FallbackToResolveByTypeIfNameNotFound = true; >> in your selector. >> >> HTH, >> cheers, >> Krzysztof >> >> >> >> On 30/09/2011 12:50 PM, Matthew Brubaker wrote: >> >>> >>> >>> public class FileWatcherSelector : >>> DefaultTypedFactoryComponentSelector >>> { >>> >>> protected override string GetComponentName(MethodInfo method, >>> object[] arguments) >>> { >>> if (method.Name == "GetFileWatcher" && arguments.Length == 2) >>> { >>> var fileName = Convert.ToString(arguments[0]); >>> var scrubbedName = fileName.Replace('\\', >>> '_').Replace(':', '_').Replace(' ', '_'); >>> >>> return "watching.{0}".FormatWith(scrubbedName); >>> } >>> >>> return base.GetComponentName(method, arguments); >>> } >>> } >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Castle Project Users" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/castle-project-users?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
