From c6b8cecb9d6c547d7c5d58721cbf472caa3aae9f Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Mon, 30 Jul 2018 01:25:35 -0700 Subject: Change corlib version to a string, so that you can use uuidgen (or a git hash or github PR). (#9787) --- msvc/scripts/genconsts.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'msvc/scripts') diff --git a/msvc/scripts/genconsts.cs b/msvc/scripts/genconsts.cs index 1ec83657e4e..253d9068791 100755 --- a/msvc/scripts/genconsts.cs +++ b/msvc/scripts/genconsts.cs @@ -61,11 +61,11 @@ public static class Program { monoVersion += ".0"; Console.WriteLine ($"MONO_VERSION={monoVersion}"); - m = Regex.Match (output, "MONO_CORLIB_VERSION=([0-9]+)"); + m = Regex.Match (output, "MONO_CORLIB_VERSION=([^\\s]+)"); if (!m.Success) return 1; monoCorlibVersion = m.Groups[1].Value; - Console.WriteLine ($"MONO_CORLIB_VERSION={monoCorlibVersion}"); + Console.WriteLine ($"MONO_CORLIB_VERSION=\"{monoCorlibVersion}\""); } } -- cgit v1.2.3