GetExtensionForItem() static private method

static private GetExtensionForItem ( SolutionEntityItem item ) : string
item SolutionEntityItem
return string
Exemplo n.º 1
0
 public FilePath GetValidFormatName(object obj, FilePath fileName)
 {
     if (slnFileFormat.CanWriteFile(obj, this))
     {
         return(slnFileFormat.GetValidFormatName(obj, fileName, this));
     }
     else
     {
         string ext = MSBuildProjectService.GetExtensionForItem((SolutionEntityItem)obj);
         if (!string.IsNullOrEmpty(ext))
         {
             return(fileName.ChangeExtension("." + ext));
         }
         else
         {
             return(fileName);
         }
     }
 }