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 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; }