/// <summary>
 /// Checks whether the specified file can be compiled by the
 /// Wix project.
 /// </summary>
 /// <returns>
 /// <c>Compile</c> if the file is a WiX source file (.wxs)
 /// or a WiX include file (.wxi), otherwise the default implementation
 /// in MSBuildBasedProject is called.</returns>
 public override ItemType GetDefaultItemType(string fileName)
 {
     if (WixFileName.IsWixFileName(fileName)) {
         return ItemType.Compile;
     }
     return base.GetDefaultItemType(fileName);
 }
 /// <summary>
 /// Wix dialog designer can attach to Wix source files (.wxs) and
 /// Wix include files (.wxi).
 /// </summary>
 public bool CanAttachTo(IViewContent view)
 {
     if (IsViewTextEditorProvider(view))
     {
         return(WixFileName.IsWixFileName(view.PrimaryFileName));
     }
     return(false);
 }