Windows: how make File Explorer Search to work

When searching for content using the File Explorer Search, often it happens that it is not able to find content inside files.

This can be a problem, above all for developers, searching for source files containing some string.

Using the tips in the article How to Make Windows 7 Search File Contents, I've found the following suggestions:

  • from the Folder Options, in the Search tab, avoid using the Index and select use "Always search file names and contents"
  • from Control Panel, Change How Windows searches, press the Advanced button, in the File Types tab, add a new file extension (or edit exisiting ones) selecting "Index Properties and File Contents"

SharePoint: using OOTB translations

In SharePoint there are already a lot of translated strings, that you can find in the resx files in the folder C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\Resources.

You can incorporate them in your resource files in the form $Resources:StringID;. For example you can use:


To access them from C# code, you can use the method SPUtility.GetLocalizedString.

For example, to retrieve the name of the Document content type, it is possible to use the following line:

   string documentCTname = SPUtility.GetLocalizedString("$Resources:Document", "core", web.Language);

SharePoint 2010: how create new CAML queries

In SharePoint 2007, there was an useful tool to design and create new CAML queries: it was U2U CAML Query Builder.

Sadly it hasn't been updated for SharePoint 2010, and it seems that it is not available anymore.

The blog post U2U CAML Query Builder for SharePoint 2010? suggests two tricks:

  • connect the old CAML query builder (for SharePoint 2007) to SharePoint 2010 via web services;
  • design the new query with LINQ to SharePoint, then trace its output as described in my previous article Linq to SharePoint 2010: how trace the CAML query.

Alternatively, it would be possible to use the CAML.NET library, to build CAML queries in a type-safe way.

Finally: the StackOverflow question U2U Caml Query Builder no longer available? suggests to use the following tools: