[Tests] In the dotnet tests, if using vb force the lang to latest instead of the 'preview' used by the sdk.

This commit is contained in:
Manuel de la Pena 2023-07-27 12:17:19 -04:00
Родитель 101c6ef462
Коммит 05b4ef69fb
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -176,6 +176,10 @@ namespace Xamarin.Tests {
// Work around https://github.com/dotnet/msbuild/issues/8845
args.Add ("/v:diag");
args.Add ("/consoleloggerparameters:Verbosity=Quiet");
args.Add ("/consoleloggerparameters:Verbosity=Quiet");
// vb does not have preview lang, so we force it to latest
if (project.EndsWith (".vbproj", StringComparison.OrdinalIgnoreCase))
args.Add ("/p:LangVersion=latest");
// End workaround
var env = new Dictionary<string, string?> ();