From 47252ae4fae7416d8edfa03a9eebfb4bd58f8d26 Mon Sep 17 00:00:00 2001 From: slozier Date: Fri, 24 Apr 2020 11:46:56 -0400 Subject: [PATCH] Misc changes (#226) * Misc changes * Update VSTS images * Update NuGet test packages * Revert changes to csproj --- .vsts-ci.yml | 6 +++--- Src/Microsoft.Dynamic/Ast/ConstantExpression.cs | 6 +++--- Tests/ClrAssembly/ClrAssembly.csproj | 1 + Tests/Metadata/Metadata.csproj | 7 +++++-- Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj | 7 +++++-- .../Microsoft.Scripting.Test.csproj | 7 +++++-- 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index d2f6c168..6e8567eb 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -6,7 +6,7 @@ jobs: displayName: Windows timeoutInMinutes: 180 pool: - vmImage: windows-2019 + vmImage: windows-latest steps: - template: Build/steps.yml parameters: @@ -18,7 +18,7 @@ jobs: displayName: Linux (Ubuntu) timeoutInMinutes: 180 pool: - vmImage: 'ubuntu-16.04' + vmImage: ubuntu-latest steps: - template: Build/steps.yml parameters: @@ -30,7 +30,7 @@ jobs: displayName: macOS timeoutInMinutes: 180 pool: - vmImage: 'macOS-10.13' + vmImage: macOS-latest steps: - template: Build/steps.yml parameters: diff --git a/Src/Microsoft.Dynamic/Ast/ConstantExpression.cs b/Src/Microsoft.Dynamic/Ast/ConstantExpression.cs index 9a12530f..0b2a2d2e 100644 --- a/Src/Microsoft.Dynamic/Ast/ConstantExpression.cs +++ b/Src/Microsoft.Dynamic/Ast/ConstantExpression.cs @@ -119,11 +119,11 @@ private static Expression CreateArray(T[] array) { private static Expression ComplexConstant(Complex value) { if (value.Real != 0.0) { - if (value.Imaginary() != 0.0) { + if (value.Imaginary != 0.0) { return Expression.Call( new Func(MathUtils.MakeComplex).GetMethodInfo(), Constant(value.Real), - Constant(value.Imaginary()) + Constant(value.Imaginary) ); } @@ -135,7 +135,7 @@ private static Expression ComplexConstant(Complex value) { return Expression.Call( new Func(MathUtils.MakeImaginary).GetMethodInfo(), - Constant(value.Imaginary()) + Constant(value.Imaginary) ); } } diff --git a/Tests/ClrAssembly/ClrAssembly.csproj b/Tests/ClrAssembly/ClrAssembly.csproj index 5adf527e..951f1c89 100644 --- a/Tests/ClrAssembly/ClrAssembly.csproj +++ b/Tests/ClrAssembly/ClrAssembly.csproj @@ -127,6 +127,7 @@ + diff --git a/Tests/Metadata/Metadata.csproj b/Tests/Metadata/Metadata.csproj index 6cd144bb..dc665451 100644 --- a/Tests/Metadata/Metadata.csproj +++ b/Tests/Metadata/Metadata.csproj @@ -15,8 +15,11 @@ - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj b/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj index 90a2fe24..5c7479c6 100644 --- a/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj +++ b/Tests/Microsoft.Dynamic.Test/Microsoft.Dynamic.Test.csproj @@ -6,8 +6,11 @@ - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj b/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj index 15bce35e..936a4e78 100644 --- a/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj +++ b/Tests/Microsoft.Scripting.Test/Microsoft.Scripting.Test.csproj @@ -6,8 +6,11 @@ - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive +