From 67fd8265894bd6707a10517133001b143f747693 Mon Sep 17 00:00:00 2001 From: Jeremy Kuhne Date: Thu, 30 Apr 2015 15:56:28 -0700 Subject: [PATCH] Workarounds for building with Roslyn/MSBuild on Unix. Allows a successful compile with xplat MSBuild branch and Roslyn on Mono. Adds the Roslyn package and UseRoslyn property to use Roslyn. Disable PDB generation (NYI), skip packaging, disables ECMA delay signing. Also temporarily disables two test projects. Fixes casing for a few source file includes. Add issue links and a check for missing Roslyn targets when attempting to build on Roslyn. --- dir.props | 62 ++++++++++++++++++- dir.targets | 5 +- override.targets | 1 + roslyn.xplat.targets | 14 +++++ src/.nuget/packages.config | 1 + .../src/System.IO.Compression.csproj | 4 +- .../src/System.Private.Uri.CoreCLR.csproj | 2 +- ...tem.Runtime.InteropServices.CoreCLR.csproj | 18 +++--- src/dirs.proj | 10 +-- 9 files changed, 96 insertions(+), 21 deletions(-) create mode 100644 roslyn.xplat.targets diff --git a/dir.props b/dir.props index ff034cd758..0e38f5dd5c 100644 --- a/dir.props +++ b/dir.props @@ -1,4 +1,4 @@ - + @@ -27,7 +29,7 @@ $(BinDir)obj/ $(BinDir)tests/ $(BinDir)packages/ - + $(ProjectDir)packages/ $(PackagesDir)Microsoft.DotNet.BuildTools.$(BuildToolsVersion)/lib/ @@ -60,6 +62,53 @@ true + + + $(PackagesDir)/$(RoslynPackageName).$(RoslynVersion)/ + $(RoslynPackageDir)build/Microsoft.Net.ToolsetCompilers.props + + + + false + none + + false + + + + + + + + + + + false + + true + + + + + diff --git a/dir.targets b/dir.targets index 284e22794e..7942e69e31 100644 --- a/dir.targets +++ b/dir.targets @@ -88,11 +88,13 @@ - + + @@ -110,5 +112,4 @@ - diff --git a/override.targets b/override.targets index d4942f148a..e4b89b7031 100644 --- a/override.targets +++ b/override.targets @@ -4,4 +4,5 @@ --> + diff --git a/roslyn.xplat.targets b/roslyn.xplat.targets new file mode 100644 index 0000000000..3459aa12c6 --- /dev/null +++ b/roslyn.xplat.targets @@ -0,0 +1,14 @@ + + + + + + + false + + + + + diff --git a/src/.nuget/packages.config b/src/.nuget/packages.config index f2524f510a..e39333da31 100644 --- a/src/.nuget/packages.config +++ b/src/.nuget/packages.config @@ -4,4 +4,5 @@ + diff --git a/src/System.IO.Compression/src/System.IO.Compression.csproj b/src/System.IO.Compression/src/System.IO.Compression.csproj index 58dd47692d..7c04994fd3 100644 --- a/src/System.IO.Compression/src/System.IO.Compression.csproj +++ b/src/System.IO.Compression/src/System.IO.Compression.csproj @@ -8,7 +8,7 @@ Library {5471BFE8-8071-466F-838E-5ADAA779E742} true - true + true @@ -73,4 +73,4 @@ - \ No newline at end of file + diff --git a/src/System.Private.Uri/src/System.Private.Uri.CoreCLR.csproj b/src/System.Private.Uri/src/System.Private.Uri.CoreCLR.csproj index 23846d3234..67e7c72286 100644 --- a/src/System.Private.Uri/src/System.Private.Uri.CoreCLR.csproj +++ b/src/System.Private.Uri/src/System.Private.Uri.CoreCLR.csproj @@ -55,7 +55,7 @@ - + diff --git a/src/System.Runtime.InteropServices/src/System.Runtime.InteropServices.CoreCLR.csproj b/src/System.Runtime.InteropServices/src/System.Runtime.InteropServices.CoreCLR.csproj index ee984c704e..e11c7fd7fd 100644 --- a/src/System.Runtime.InteropServices/src/System.Runtime.InteropServices.CoreCLR.csproj +++ b/src/System.Runtime.InteropServices/src/System.Runtime.InteropServices.CoreCLR.csproj @@ -23,15 +23,15 @@ - - - - + + + + - - - - + + + + @@ -39,4 +39,4 @@ - \ No newline at end of file + diff --git a/src/dirs.proj b/src/dirs.proj index aa2752ad6f..86fd0da794 100644 --- a/src/dirs.proj +++ b/src/dirs.proj @@ -3,10 +3,10 @@ - - - - + + + + @@ -29,4 +29,4 @@ - \ No newline at end of file +