From c8082cc895db330a652fd763b5fe04d6767d3530 Mon Sep 17 00:00:00 2001 From: Brice Lambson Date: Wed, 31 Jul 2019 10:30:20 -0700 Subject: [PATCH] Enable building on macOS and Linux --- azure-pipelines.yml | 16 --------------- eng/common/dotnet-install.sh | 0 .../FunctionalTests.Transitional.csproj | 12 +++++------ .../TestHelpers/ResourceUtilities.cs | 5 ++--- .../FunctionalTests/FunctionalTests.csproj | 10 +++++----- .../VBTests/TranslatorTests.vb | 6 ++++-- test/EntityFramework/VBTests/VBTests.vbproj | 20 +++++++++---------- 7 files changed, 27 insertions(+), 42 deletions(-) mode change 100644 => 100755 eng/common/dotnet-install.sh diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2548415ed8..49f4d17734 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -97,19 +97,3 @@ jobs: artifactName: packages artifactType: Container parallel: true - - # UNDONE: Blocked by NuGet/Home#7341 - #- job: macOS - # pool: - # vmImage: macOS-10.13 - # steps: - # - script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine - # name: Build - - # UNDONE: Blocked by dsplaisted/ReferenceAssemblyPackages#2 - #- job: Linux - # pool: - # vmImage: ubuntu-16.04 - # steps: - # - script: eng/common/cibuild.sh --configuration $(_BuildConfig) --prepareMachine - # name: Build diff --git a/eng/common/dotnet-install.sh b/eng/common/dotnet-install.sh old mode 100644 new mode 100755 diff --git a/test/EntityFramework/FunctionalTests.Transitional/FunctionalTests.Transitional.csproj b/test/EntityFramework/FunctionalTests.Transitional/FunctionalTests.Transitional.csproj index 209a58012f..479c598eb9 100644 --- a/test/EntityFramework/FunctionalTests.Transitional/FunctionalTests.Transitional.csproj +++ b/test/EntityFramework/FunctionalTests.Transitional/FunctionalTests.Transitional.csproj @@ -34,28 +34,28 @@ - + SqlServerTypes\Loader.cs - + SqlServerTypes\readme.htm - + PreserveNewest SqlServerTypes\x64\msvcr120.dll - + PreserveNewest SqlServerTypes\x64\SqlServerSpatial140.dll - + PreserveNewest SqlServerTypes\x86\msvcr120.dll - + PreserveNewest SqlServerTypes\x86\SqlServerSpatial140.dll diff --git a/test/EntityFramework/FunctionalTests.Transitional/TestHelpers/ResourceUtilities.cs b/test/EntityFramework/FunctionalTests.Transitional/TestHelpers/ResourceUtilities.cs index be27407b9f..513446010c 100644 --- a/test/EntityFramework/FunctionalTests.Transitional/TestHelpers/ResourceUtilities.cs +++ b/test/EntityFramework/FunctionalTests.Transitional/TestHelpers/ResourceUtilities.cs @@ -79,11 +79,10 @@ public static void CopyEmbeddedResourcesToCurrentDir( { Debug.Assert(sourceStream != null, "Could not create stream for embedded resource " + prefix + name); - var destinationPath = Path.Combine(@".\", name); - if (!File.Exists(destinationPath) || overwrite) + if (!File.Exists(name) || overwrite) { using ( - var destinationStream = new FileStream(destinationPath, FileMode.Create, FileAccess.Write)) + var destinationStream = new FileStream(name, FileMode.Create, FileAccess.Write)) { var sourceBuffer = new byte[sourceStream.Length]; sourceStream.Read(sourceBuffer, 0, sourceBuffer.Length); diff --git a/test/EntityFramework/FunctionalTests/FunctionalTests.csproj b/test/EntityFramework/FunctionalTests/FunctionalTests.csproj index 2114b0d480..755756e54f 100644 --- a/test/EntityFramework/FunctionalTests/FunctionalTests.csproj +++ b/test/EntityFramework/FunctionalTests/FunctionalTests.csproj @@ -25,22 +25,22 @@ - + SqlServerTypes\readme.htm - + PreserveNewest SqlServerTypes\x64\msvcr120.dll - + PreserveNewest SqlServerTypes\x64\SqlServerSpatial140.dll - + PreserveNewest SqlServerTypes\x86\msvcr120.dll - + PreserveNewest SqlServerTypes\x86\SqlServerSpatial140.dll diff --git a/test/EntityFramework/VBTests/TranslatorTests.vb b/test/EntityFramework/VBTests/TranslatorTests.vb index 304199a2a3..365e85a4b9 100644 --- a/test/EntityFramework/VBTests/TranslatorTests.vb +++ b/test/EntityFramework/VBTests/TranslatorTests.vb @@ -30,7 +30,8 @@ Public Class TranslatorTests " [Extent1].[Id] AS [Id]" & vbCrLf & " FROM [dbo].[Entities] AS [Extent1]" & vbCrLf & " WHERE (POWER( CAST( [Extent1].[Id] AS float), cast(2 as float(53)))) < cast(30 as float(53))", - query.ToString()) + query.ToString(), + ignoreLineEndingDifferences:=True) End Using End Sub @@ -44,7 +45,8 @@ Public Class TranslatorTests " [Extent1].[Id] AS [Id]" & vbCrLf & " FROM [dbo].[Entities] AS [Extent1]" & vbCrLf & " WHERE (POWER( CAST( [Extent1].[Id] AS float), cast(2 as float(53)))) < cast(30 as float(53))", - query.ToString()) + query.ToString(), + ignoreLineEndingDifferences:=True) End Using End Sub diff --git a/test/EntityFramework/VBTests/VBTests.vbproj b/test/EntityFramework/VBTests/VBTests.vbproj index 89dc97b781..b9bb83e6e8 100644 --- a/test/EntityFramework/VBTests/VBTests.vbproj +++ b/test/EntityFramework/VBTests/VBTests.vbproj @@ -5,33 +5,33 @@ EntityFramework.VBTests net452;netcoreapp3.0 - + - + SqlServerTypes\readme.htm - + PreserveNewest SqlServerTypes\x64\msvcr120.dll - + PreserveNewest SqlServerTypes\x64\SqlServerSpatial140.dll - + PreserveNewest SqlServerTypes\x86\msvcr120.dll - + PreserveNewest SqlServerTypes\x86\SqlServerSpatial140.dll - + VbAdvancedPatterns.tt @@ -195,7 +195,7 @@ True - + TextTemplatingFileGenerator @@ -216,12 +216,12 @@ VbMonsterModel.vb - + - +