Ejemplo n.º 1
0
 private static void LogDriveEnumerationWarningWithEvaluationLoggingContext(EvaluationLoggingContext evaluationLoggingContext, IElementLocation importLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec)
 {
     if (importLocation != null)
     {
         evaluationLoggingContext.LogWarning(
             DriveEnumeratingWildcardMessageResourceName,
             filespecUnescaped,
             XMakeAttributes.project,
             XMakeElements.import);
     }
     else if (excludeFileSpecIsEmpty)
     {
         evaluationLoggingContext.LogWarning(
             DriveEnumeratingWildcardMessageResourceName,
             fileSpec,
             XMakeAttributes.include,
             XMakeElements.itemGroup);
     }
     else
     {
         evaluationLoggingContext.LogWarning(
             DriveEnumeratingWildcardMessageResourceName,
             fileSpec,
             XMakeAttributes.exclude,
             XMakeElements.itemGroup);
     }
 }