From 723f36b97b836fb44f034dd2492fbd5623a45310 Mon Sep 17 00:00:00 2001 From: pleasenoban Date: Wed, 23 Aug 2023 11:38:12 +0700 Subject: [PATCH 1/2] fix cosmos builder not building --- source/Cosmos.Build.Builder/CosmosBuildDefinition.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Cosmos.Build.Builder/CosmosBuildDefinition.cs b/source/Cosmos.Build.Builder/CosmosBuildDefinition.cs index b40a49fb3b..9579dee96e 100644 --- a/source/Cosmos.Build.Builder/CosmosBuildDefinition.cs +++ b/source/Cosmos.Build.Builder/CosmosBuildDefinition.cs @@ -110,7 +110,7 @@ void CleanPackage(string aPackage) "Cosmos.Build.Tasks", }; - foreach (var task in PackProject(cosmosPackageProjects, new List())) + foreach (var task in PackProject(cosmosPackageProjects, new List(), new List())) { yield return task; } From d00f3a958aad5f597121a6d7e01d3a1b0350ab1a Mon Sep 17 00:00:00 2001 From: pleasenoban Date: Wed, 23 Aug 2023 13:10:33 +0700 Subject: [PATCH 2/2] exit batch file if build is unsuccessful --- install-VS2022.bat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install-VS2022.bat b/install-VS2022.bat index 5b65409f74..89e18e9707 100644 --- a/install-VS2022.bat +++ b/install-VS2022.bat @@ -29,6 +29,10 @@ if not exist "%MSBuild%" ( echo Building Builder.sln "%MSBuild%" Builder.sln /nologo /maxcpucount /nodeReuse:false /verbosity:minimal /t:Restore;Build +if %ERRORLEVEL% neq 0 ( + echo Failed to build Cosmos Builder. Exiting... + exit /b %ERRORLEVEL% +) start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %* exit