Skip to content

Commit 13e65e5

Browse files
authored
Merge pull request #589 from xamarin/create-pull-request/patch-1658729135
Weekly stable updates
2 parents efcd757 + ad418b9 commit 13e65e5

File tree

2 files changed

+56
-53
lines changed

2 files changed

+56
-53
lines changed

build.cake

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -753,21 +753,25 @@ Task("samples")
753753
if (!string.IsNullOrEmpty(MSBUILD_PATH))
754754
settings_msbuild.ToolPath = MSBUILD_PATH;
755755

756-
Information($"=====================================================================================================");
757-
Information("MSBuild ./samples/BuildAll/BuildAll.sln");
758-
MSBuild("./samples/BuildAll/BuildAll.sln", settings_msbuild);
759-
Information($"=====================================================================================================");
760-
Information("MSBuild ./samples/BuildXamarinFormsApp/BuildXamarinFormsApp.sln");
761-
// MSBuild("./samples/BuildXamarinFormsApp/BuildXamarinFormsApp.sln", settings_msbuild);
762-
Information($"=====================================================================================================");
763-
Information("MSBuild ./samples/BuildMinimalMaterial/BuildMinimalMaterial.sln");
764-
MSBuild("./samples/BuildMinimalMaterial/BuildMinimalMaterial.sln", settings_msbuild);
765-
Information($"=====================================================================================================");
766-
// Information("MSBuild ./samples/BuildMinimalMaterialAppCompat/BuildMinimalMaterialAppCompat.sln ");
767-
// MSBuild("./samples/BuildMinimalMaterialAppCompat/BuildMinimalMaterialAppCompat.sln ", settings_msbuild);
768-
Information($"=====================================================================================================");
769-
// Information("MSBuild ./samples/dotnet/BuildAllDotNet.sln");
770-
// MSBuild("./samples/dotnet/BuildAllDotNet.sln", settings_msbuild);
756+
string[] solutions = new string[]
757+
{
758+
"./samples/BuildAll/BuildAll.sln",
759+
"./samples/BuildXamarinFormsApp/BuildXamarinFormsApp.sln",
760+
"./samples/BuildMinimalMaterial/BuildMinimalMaterial.sln",
761+
//"./samples/BuildMinimalMaterialAppCompat/BuildMinimalMaterialAppCompat.sln",
762+
//"./samples/dotnet/BuildAllDotNet.sln", //MSBuild cannot handle net6 projects
763+
};
764+
765+
foreach(string solution in solutions)
766+
{
767+
FilePath fp_solution = new FilePath(solution);
768+
string filename = fp_solution.GetFilenameWithoutExtension().ToString();
769+
Information($"=====================================================================================================");
770+
Information($"MSBuild {solution} / {filename}");
771+
MSBuild(solution, settings_msbuild.EnableBinaryLogger($"./output/samples.{filename}.{CONFIGURATION}.msbuild.{DateTime.Now.ToString("yyyyMMddHHmmss")}.binlog"));
772+
}
773+
774+
RunTarget("samples-dotnet");
771775

772776
return;
773777
});
@@ -793,29 +797,28 @@ Task("samples-dotnet")
793797
if (!string.IsNullOrEmpty(ANDROID_HOME))
794798
settings.WithProperty("AndroidSdkDirectory", $"{ANDROID_HOME}");
795799

796-
Information($"=====================================================================================================");
797-
Information("DotNetBuild ./samples/dotnet/BuildAllDotNet.sln");
798-
DotNetRestore("./samples/dotnet/BuildAllDotNet.sln", new DotNetRestoreSettings
800+
string[] solutions = new string[]
799801
{
800-
MSBuildSettings = settings.EnableBinaryLogger("./output/samples-dotnet-restore.binlog")
801-
});
802-
DotNetMSBuild("./samples/dotnet/BuildAllDotNet.sln", settings);
802+
"./samples/dotnet/BuildAllDotNet.sln", //MSBuild cannot handle net6 projects
803+
"./samples/dotnet/BuildAllMauiApp.sln",
804+
"./samples/dotnet/BuildAllXamarinForms.sln",
805+
};
803806

804-
Information($"=====================================================================================================");
805-
Information("DotNetBuild ./samples/dotnet/BuildAllMauiApp.sln");
806-
DotNetRestore("./samples/dotnet/BuildAllMauiApp.sln", new DotNetRestoreSettings
807-
{
808-
MSBuildSettings = settings.EnableBinaryLogger("./output/samples-dotnet-restore.binlog")
809-
});
810-
DotNetMSBuild("./samples/dotnet/BuildAllMauiApp.sln", settings);
811-
Information($"=====================================================================================================");
812-
Information("DotNetBuild ./samples/dotnet/BuildAllXamarinForms.sln");
813-
DotNetRestore("./samples/dotnet/BuildAllXamarinForms.sln", new DotNetRestoreSettings
807+
foreach(string solution in solutions)
814808
{
815-
MSBuildSettings = settings.EnableBinaryLogger("./output/samples-dotnet-restore.binlog")
816-
});
817-
DotNetMSBuild("./samples/dotnet/BuildAllXamarinForms.sln", settings);
818-
809+
FilePath fp_solution = new FilePath(solution);
810+
string filename = fp_solution.GetFilenameWithoutExtension().ToString();
811+
Information($"=====================================================================================================");
812+
Information($"DotNetMSBuild {solution} / {filename}");
813+
DotNetRestore(solution, new DotNetRestoreSettings
814+
{
815+
MSBuildSettings = settings.EnableBinaryLogger($"./output/samples-dotnet-restore-{filename}.binlog")
816+
});
817+
DotNetBuild(solution, new DotNetBuildSettings
818+
{
819+
MSBuildSettings = settings.EnableBinaryLogger($"./output/samples-dotnet-dotnet-msbuild-{filename}.binlog")
820+
});
821+
}
819822
});
820823

821824
Task("api-diff")
@@ -971,15 +974,15 @@ Task ("full-run")
971974
.IsDependentOn ("binderate")
972975
.IsDependentOn ("nuget")
973976
.IsDependentOn ("samples")
974-
.IsDependentOn ("samples-dotnet");
977+
;
975978

976979
Task ("ci")
977980
.IsDependentOn ("check-tools")
978981
.IsDependentOn ("inject-variables")
979982
.IsDependentOn ("binderate")
980983
.IsDependentOn ("nuget")
981984
.IsDependentOn ("samples")
982-
.IsDependentOn ("samples-dotnet");
985+
;
983986

984987
// for local builds, conditionally do the first binderate
985988
if (FileExists ("./generated/AndroidX.sln")) {

config.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,8 +1454,8 @@
14541454
{
14551455
"groupId": "org.checkerframework",
14561456
"artifactId": "checker-qual",
1457-
"version": "3.22.2",
1458-
"nugetVersion": "3.22.2",
1457+
"version": "3.23.0",
1458+
"nugetVersion": "3.23.0",
14591459
"nugetId": "Xamarin.CheckerFramework.CheckerQual",
14601460
"dependencyOnly": false,
14611461
"templateSet": "no-bindings"
@@ -1529,62 +1529,62 @@
15291529
{
15301530
"groupId": "org.jetbrains.kotlinx",
15311531
"artifactId": "kotlinx-coroutines-android",
1532-
"version": "1.6.3",
1533-
"nugetVersion": "1.6.3",
1532+
"version": "1.6.4",
1533+
"nugetVersion": "1.6.4",
15341534
"nugetId": "Xamarin.KotlinX.Coroutines.Android",
15351535
"dependencyOnly": false,
15361536
"templateSet": "kotlinx"
15371537
},
15381538
{
15391539
"groupId": "org.jetbrains.kotlinx",
15401540
"artifactId": "kotlinx-coroutines-core",
1541-
"version": "1.6.3",
1542-
"nugetVersion": "1.6.3",
1541+
"version": "1.6.4",
1542+
"nugetVersion": "1.6.4",
15431543
"nugetId": "Xamarin.KotlinX.Coroutines.Core",
15441544
"dependencyOnly": false,
15451545
"templateSet": "kotlinx"
15461546
},
15471547
{
15481548
"groupId": "org.jetbrains.kotlinx",
15491549
"artifactId": "kotlinx-coroutines-core-jvm",
1550-
"version": "1.6.3",
1551-
"nugetVersion": "1.6.3",
1550+
"version": "1.6.4",
1551+
"nugetVersion": "1.6.4",
15521552
"nugetId": "Xamarin.KotlinX.Coroutines.Core.Jvm",
15531553
"dependencyOnly": false,
15541554
"templateSet": "kotlinx"
15551555
},
15561556
{
15571557
"groupId": "org.jetbrains.kotlinx",
15581558
"artifactId": "kotlinx-coroutines-guava",
1559-
"version": "1.6.3",
1560-
"nugetVersion": "1.6.3",
1559+
"version": "1.6.4",
1560+
"nugetVersion": "1.6.4",
15611561
"nugetId": "Xamarin.KotlinX.Coroutines.Guava",
15621562
"dependencyOnly": false,
15631563
"templateSet": "kotlinx"
15641564
},
15651565
{
15661566
"groupId": "org.jetbrains.kotlinx",
15671567
"artifactId": "kotlinx-coroutines-jdk8",
1568-
"version": "1.6.3",
1569-
"nugetVersion": "1.6.3",
1568+
"version": "1.6.4",
1569+
"nugetVersion": "1.6.4",
15701570
"nugetId": "Xamarin.KotlinX.Coroutines.Jdk8",
15711571
"dependencyOnly": false,
15721572
"templateSet": "kotlinx"
15731573
},
15741574
{
15751575
"groupId": "org.jetbrains.kotlinx",
15761576
"artifactId": "kotlinx-coroutines-reactive",
1577-
"version": "1.6.3",
1578-
"nugetVersion": "1.6.3",
1577+
"version": "1.6.4",
1578+
"nugetVersion": "1.6.4",
15791579
"nugetId": "Xamarin.KotlinX.Coroutines.Reactive",
15801580
"dependencyOnly": false,
15811581
"templateSet": "kotlinx"
15821582
},
15831583
{
15841584
"groupId": "org.jetbrains.kotlinx",
15851585
"artifactId": "kotlinx-coroutines-rx2",
1586-
"version": "1.6.3",
1587-
"nugetVersion": "1.6.3",
1586+
"version": "1.6.4",
1587+
"nugetVersion": "1.6.4",
15881588
"nugetId": "Xamarin.KotlinX.Coroutines.Rx2",
15891589
"dependencyOnly": false,
15901590
"templateSet": "kotlinx"

0 commit comments

Comments
 (0)