public static MsBuildItemGroup Create(params ProjectReference[] projects)
        {
            var items = new List <MsBuildItem>();

            foreach (var project in projects)
            {
                items.Add(SdkItems.ProjectReference(in project));
            }
            return(ItemGroups.Create(items.ToArray()));
        }
Пример #2
0
        public static MsBuildItemGroup Create(params NuGetReference[] packages)
        {
            var items = new List <MsBuildItem>();

            foreach (var package in packages)
            {
                items.Add(SdkItems.NuGetReference(in package));
            }
            return(ItemGroups.Create(items.ToArray()));
        }