From 54bdce6c164924d6955ac611dec0ca4f58bd6e65 Mon Sep 17 00:00:00 2001 From: joncham Date: Fri, 13 Feb 2009 21:25:57 +0000 Subject: [PATCH] Add test for solutions, project references, and project dependencies. git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@126870 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- .../tests/standalone/Application/Application.sln | 35 +++++++++++++ .../Application/Application/Application.csproj | 60 ++++++++++++++++++++++ .../standalone/Application/Application/Program.cs | 43 ++++++++++++++++ .../standalone/Application/Library1/Class1.cs | 37 +++++++++++++ .../Application/Library1/Library1.csproj | 49 ++++++++++++++++++ .../standalone/Application/Library2/Class1.cs | 37 +++++++++++++ .../Application/Library2/Library2.csproj | 49 ++++++++++++++++++ 7 files changed, 310 insertions(+) create mode 100644 tools/xbuild/tests/standalone/Application/Application.sln create mode 100644 tools/xbuild/tests/standalone/Application/Application/Application.csproj create mode 100644 tools/xbuild/tests/standalone/Application/Application/Program.cs create mode 100644 tools/xbuild/tests/standalone/Application/Library1/Class1.cs create mode 100644 tools/xbuild/tests/standalone/Application/Library1/Library1.csproj create mode 100644 tools/xbuild/tests/standalone/Application/Library2/Class1.cs create mode 100644 tools/xbuild/tests/standalone/Application/Library2/Library2.csproj diff --git a/tools/xbuild/tests/standalone/Application/Application.sln b/tools/xbuild/tests/standalone/Application/Application.sln new file mode 100644 index 0000000000..808f4bc917 --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Application.sln @@ -0,0 +1,35 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Application", "Application\Application.csproj", "{5DF4BCE6-7670-4AF4-9A0F-0E2FF50F7134}" + ProjectSection(ProjectDependencies) = postProject + {6173C865-B586-4A23-932E-1EAED7C8B591} = {6173C865-B586-4A23-932E-1EAED7C8B591} + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Library1", "Library1\Library1.csproj", "{8312C1F7-C72D-4BA8-950A-D304E4CDF78C}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Library2", "Library2\Library2.csproj", "{6173C865-B586-4A23-932E-1EAED7C8B591}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5DF4BCE6-7670-4AF4-9A0F-0E2FF50F7134}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5DF4BCE6-7670-4AF4-9A0F-0E2FF50F7134}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5DF4BCE6-7670-4AF4-9A0F-0E2FF50F7134}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5DF4BCE6-7670-4AF4-9A0F-0E2FF50F7134}.Release|Any CPU.Build.0 = Release|Any CPU + {8312C1F7-C72D-4BA8-950A-D304E4CDF78C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8312C1F7-C72D-4BA8-950A-D304E4CDF78C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8312C1F7-C72D-4BA8-950A-D304E4CDF78C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8312C1F7-C72D-4BA8-950A-D304E4CDF78C}.Release|Any CPU.Build.0 = Release|Any CPU + {6173C865-B586-4A23-932E-1EAED7C8B591}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6173C865-B586-4A23-932E-1EAED7C8B591}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6173C865-B586-4A23-932E-1EAED7C8B591}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6173C865-B586-4A23-932E-1EAED7C8B591}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/tools/xbuild/tests/standalone/Application/Application/Application.csproj b/tools/xbuild/tests/standalone/Application/Application/Application.csproj new file mode 100644 index 0000000000..849d58336a --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Application/Application.csproj @@ -0,0 +1,60 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {5DF4BCE6-7670-4AF4-9A0F-0E2FF50F7134} + Exe + Properties + Application + Application + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + {8312C1F7-C72D-4BA8-950A-D304E4CDF78C} + Library1 + + + False + ..\Library2\bin\$(Configuration)\Library2.dll + False + + + + + + + + \ No newline at end of file diff --git a/tools/xbuild/tests/standalone/Application/Application/Program.cs b/tools/xbuild/tests/standalone/Application/Application/Program.cs new file mode 100644 index 0000000000..18794ba2f5 --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Application/Program.cs @@ -0,0 +1,43 @@ +// +// SolutionParser.cs: Generates a project file from a solution file. +// +// Author: +// Jonathan Chambers (joncham@gmail.com) +// +// (C) 2009 Jonathan Chambers +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Application +{ + class Program + { + static void Main(string[] args) + { + Library1.Class1 c1 = new Library1.Class1(); + Library2.Class1 c2 = new Library2.Class1(); + Console.WriteLine("{0} {1}", c1, c2); + } + } +} diff --git a/tools/xbuild/tests/standalone/Application/Library1/Class1.cs b/tools/xbuild/tests/standalone/Application/Library1/Class1.cs new file mode 100644 index 0000000000..6ddfc8cddf --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Library1/Class1.cs @@ -0,0 +1,37 @@ +// +// SolutionParser.cs: Generates a project file from a solution file. +// +// Author: +// Jonathan Chambers (joncham@gmail.com) +// +// (C) 2009 Jonathan Chambers +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Library1 +{ + public class Class1 + { + } +} diff --git a/tools/xbuild/tests/standalone/Application/Library1/Library1.csproj b/tools/xbuild/tests/standalone/Application/Library1/Library1.csproj new file mode 100644 index 0000000000..cc5c1ceb7b --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Library1/Library1.csproj @@ -0,0 +1,49 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {8312C1F7-C72D-4BA8-950A-D304E4CDF78C} + Library + Properties + Library1 + Library1 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tools/xbuild/tests/standalone/Application/Library2/Class1.cs b/tools/xbuild/tests/standalone/Application/Library2/Class1.cs new file mode 100644 index 0000000000..755978da7d --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Library2/Class1.cs @@ -0,0 +1,37 @@ +// +// SolutionParser.cs: Generates a project file from a solution file. +// +// Author: +// Jonathan Chambers (joncham@gmail.com) +// +// (C) 2009 Jonathan Chambers +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +using System; +using System.Collections.Generic; +using System.Text; + +namespace Library2 +{ + public class Class1 + { + } +} diff --git a/tools/xbuild/tests/standalone/Application/Library2/Library2.csproj b/tools/xbuild/tests/standalone/Application/Library2/Library2.csproj new file mode 100644 index 0000000000..167c4e2892 --- /dev/null +++ b/tools/xbuild/tests/standalone/Application/Library2/Library2.csproj @@ -0,0 +1,49 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {6173C865-B586-4A23-932E-1EAED7C8B591} + Library + Properties + Library2 + Library2 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + \ No newline at end of file -- 2.11.4.GIT