コード例 #1
0
        public SdkResult(SdkReference sdkReference, IEnumerable <string> paths, string version, IDictionary <string, string> propertiesToAdd,
                         IDictionary <string, SdkResultItem> itemsToAdd, IEnumerable <string> warnings)
        {
            Success      = true;
            SdkReference = sdkReference;
            if (paths != null)
            {
                var firstPath = paths.FirstOrDefault();
                if (firstPath != null)
                {
                    Path = firstPath;
                }
                if (paths.Count() > 1)
                {
                    AdditionalPaths = paths.Skip(1).ToList();
                }
            }

            Version = version;

            //  Note: these dictionaries should use StringComparison.OrdinalIgnoreCase
            PropertiesToAdd = propertiesToAdd;
            ItemsToAdd      = itemsToAdd;

            Warnings = warnings;
        }
コード例 #2
0
 public SdkResult(SdkReference sdkReference, IEnumerable <string> errors, IEnumerable <string> warnings)
 {
     Success      = false;
     SdkReference = sdkReference;
     Errors       = errors;
     Warnings     = warnings;
 }
コード例 #3
0
 public SdkResult(SdkReference sdkReference, string path, string version, IEnumerable <string> warnings)
 {
     Success      = true;
     SdkReference = sdkReference;
     Path         = path;
     Version      = version;
     Warnings     = warnings;
 }
コード例 #4
0
 public SdkResult(SdkReference sdkReference, string path, string version, IEnumerable <string> warnings,
                  IDictionary <string, string> propertiesToAdd = null, IDictionary <string, SdkResultItem> itemsToAdd = null)
 {
     Success         = true;
     SdkReference    = sdkReference;
     Path            = path;
     Version         = version;
     Warnings        = warnings;
     PropertiesToAdd = propertiesToAdd;
     ItemsToAdd      = itemsToAdd;
 }
コード例 #5
0
ファイル: SdkResultFactory.cs プロジェクト: Nirmal4G/msbuild
 internal SdkResultFactory(SdkReference sdkReference)
 {
     _sdkReference = sdkReference;
 }