From 2a6a33fc11bcad28b6a1e760bf06dd9ff7b0744e Mon Sep 17 00:00:00 2001 From: benrr101 Date: Tue, 19 Jul 2016 14:56:44 -0700 Subject: [PATCH 1/2] Adding VS2015 support for ServiceHost project Creating the standard sln flies for the root of the sqltoolsservice project and adding xproj files for the individual projects. Has been confirmed to open and build with VS2015. xUnit tests will work, but only from Test Explorer (ie, ReSharper test runner doesn't work with dnx) Note: This may be subject to change as new standards for .NET Core project files are developed. See dotnet/roslyn-project-system#37 for more details. --- global.json | 5 ++- sqltoolsservice.sln | 40 ++++++++++++++++++++ src/ServiceHost/ServiceHost.xproj | 20 ++++++++++ test/ServiceHost.Test/ServiceHost.Test.xproj | 19 ++++++++++ 4 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 sqltoolsservice.sln create mode 100644 src/ServiceHost/ServiceHost.xproj create mode 100644 test/ServiceHost.Test/ServiceHost.Test.xproj diff --git a/global.json b/global.json index db6ba19b..9ae78d22 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,8 @@ { - "projects": [ "src", "test" ] + "projects": [ "src", "test" ], + "sdk": { + "version": "1.0.0-preview2-003121" + } } diff --git a/sqltoolsservice.sln b/sqltoolsservice.sln new file mode 100644 index 00000000..b993537f --- /dev/null +++ b/sqltoolsservice.sln @@ -0,0 +1,40 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{2BBD7364-054F-4693-97CD-1C395E3E84A9}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{AB9CA2B8-6F70-431C-8A1D-67479D8A7BE4}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{32DC973E-9EEA-4694-B1C2-B031167AB945}" + ProjectSection(SolutionItems) = preProject + global.json = global.json + EndProjectSection +EndProject +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceHost", "src\ServiceHost\ServiceHost.xproj", "{0D61DC2B-DA66-441D-B9D0-F76C98F780F9}" +EndProject +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceHost.Test", "test\ServiceHost.Test\ServiceHost.Test.xproj", "{2D771D16-9D85-4053-9F79-E2034737DEEF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0D61DC2B-DA66-441D-B9D0-F76C98F780F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0D61DC2B-DA66-441D-B9D0-F76C98F780F9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0D61DC2B-DA66-441D-B9D0-F76C98F780F9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0D61DC2B-DA66-441D-B9D0-F76C98F780F9}.Release|Any CPU.Build.0 = Release|Any CPU + {2D771D16-9D85-4053-9F79-E2034737DEEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2D771D16-9D85-4053-9F79-E2034737DEEF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2D771D16-9D85-4053-9F79-E2034737DEEF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2D771D16-9D85-4053-9F79-E2034737DEEF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {0D61DC2B-DA66-441D-B9D0-F76C98F780F9} = {2BBD7364-054F-4693-97CD-1C395E3E84A9} + {2D771D16-9D85-4053-9F79-E2034737DEEF} = {AB9CA2B8-6F70-431C-8A1D-67479D8A7BE4} + EndGlobalSection +EndGlobal diff --git a/src/ServiceHost/ServiceHost.xproj b/src/ServiceHost/ServiceHost.xproj new file mode 100644 index 00000000..ac743bab --- /dev/null +++ b/src/ServiceHost/ServiceHost.xproj @@ -0,0 +1,20 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + {0D61DC2B-DA66-441D-B9D0-F76C98F780F9} + Microsoft.SqlTools.ServiceHost + .\obj + .\bin\ + v4.5.2 + + + + 2.0 + + + diff --git a/test/ServiceHost.Test/ServiceHost.Test.xproj b/test/ServiceHost.Test/ServiceHost.Test.xproj new file mode 100644 index 00000000..7e4a3242 --- /dev/null +++ b/test/ServiceHost.Test/ServiceHost.Test.xproj @@ -0,0 +1,19 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + 2d771d16-9d85-4053-9f79-e2034737deef + Microsoft.SqlTools.EditorServices.Test.Protocol + .\obj + .\bin\ + v4.5.2 + + + 2.0 + + + \ No newline at end of file From 5517d9da817a114faeccb23458fbc9b0d6c7f339 Mon Sep 17 00:00:00 2001 From: benrr101 Date: Tue, 19 Jul 2016 16:15:21 -0700 Subject: [PATCH 2/2] Removing dead csproj file --- ...erShellEditorServices.Test.Protocol.csproj | 109 ------------------ 1 file changed, 109 deletions(-) delete mode 100644 test/ServiceHost.Test/PowerShellEditorServices.Test.Protocol.csproj diff --git a/test/ServiceHost.Test/PowerShellEditorServices.Test.Protocol.csproj b/test/ServiceHost.Test/PowerShellEditorServices.Test.Protocol.csproj deleted file mode 100644 index 54e20896..00000000 --- a/test/ServiceHost.Test/PowerShellEditorServices.Test.Protocol.csproj +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - Debug - AnyCPU - {E3A5CF5D-6E41-44AC-AE0A-4C227E4BACD4} - Library - Properties - Microsoft.SqlTools.EditorServices.Test.Protocol - Microsoft.SqlTools.EditorServices.Test.Protocol - v4.6.1 - 512 - 69e9ba79 - ..\..\ - true - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\packages\Newtonsoft.Json.8.0.2\lib\net45\Newtonsoft.Json.dll - True - - - - - - - - - - ..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll - True - - - ..\..\packages\xunit.assert.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll - True - - - ..\..\packages\xunit.extensibility.core.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll - True - - - ..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll - True - - - - - - - - - - - - - - - - - {f8a0946a-5d25-4651-8079-b8d5776916fb} - SqlToolsEditorServices.Protocol - - - {81e8cbcd-6319-49e7-9662-0475bd0791f4} - SqlToolsEditorServices - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - \ No newline at end of file