[MonoDevelop] Bugzilla Bug 79591
"Andrés G. Aragoneses [ knocte ]
"Andrés G. Aragoneses [ knocte ]
Wed Nov 29 02:36:38 EST 2006
Nate Hancock escribió:
> The bug appears to be here:
>
> /Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/WholeProjectDocumentIterator.cs
>
> Line 75:
> void AddFiles(Project project)
> {
> foreach (ProjectFile file in project.ProjectFiles) {
> if (file.BuildAction == BuildAction.Compile &&
> file.Subtype == Subtype.Code) {
> files.Add (file.Name);
> }
> }
> }
>
>
> Notice that no files with BuildAction.EmbedAsResource are added to the
> iterator's files list. Thus they are never added to the list of files to
> be searched.
>
> The only problem I can see with just adding another inclusion criteria
> is that files that are not text (i.e., png, pidb, etc) could be added as
> well.
>
> Would it be too restrictive to put a filename clause on the inclusion
> criteria like ".xml" or something?
I think we should check the Mime-type of the file. Does anyone know how
to access to that info?
Regards,
Andrés [ knocte ]
--
More information about the Monodevelop-list
mailing list