From d61af8aa70ee49531fdc397fea6bf7b044fa6301 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 16 Feb 2022 20:04:59 +0100 Subject: [PATCH] [msbuild] Generate Versions.*.g.cs before running msbuild to build the solution. (#14163) Hopefully fixes random build failures like this: > xamarin-macios/msbuild/Versions.ios.g.cs(3,1): error CS1022: Type or namespace definition, or end-of-file expected --- msbuild/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/msbuild/Makefile b/msbuild/Makefile index 9ee57f1982..5c2b747d54 100644 --- a/msbuild/Makefile +++ b/msbuild/Makefile @@ -20,7 +20,13 @@ MSBUILD_DIRECTORIES = MSBUILD_SYMLINKS = MSBUILD_TASK_ASSEMBLIES = -ALL_SOURCES:= $(shell git ls-files | sed 's/ /\\ /g') $(wildcard $(XAMARIN_MACDEV_PATH)/Xamarin.MacDev/*.cs) $(wildcard $(XAMARIN_MACDEV_PATH)/Xamarin.MacDev/*.csproj) +ALL_SOURCES:= \ + $(shell git ls-files | sed 's/ /\\ /g') \ + $(wildcard $(XAMARIN_MACDEV_PATH)/Xamarin.MacDev/*.cs) \ + $(wildcard $(XAMARIN_MACDEV_PATH)/Xamarin.MacDev/*.csproj) \ + Versions.ios.g.cs \ + Versions.mac.g.cs \ + CONFIG = Debug TARGETFRAMEWORK = netstandard2.0 WINDOWSRUNTIMEIDENTIFIER = win