You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by br...@apache.org on 2014/02/26 15:05:27 UTC

svn commit: r1572080 - in /incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src: main/csharp/ main/csharp/Converter/ test/csharp/ test/csharp/ImporterTests/ test/resource/UnsupportedProjectAboveSolution/ test/resource/Unsupporte...

Author: brett
Date: Wed Feb 26 15:05:26 2014
New Revision: 1572080

URL: http://svn.apache.org/r1572080
Log:
improved Project Import error message

* added unit tests on unsupported project folder structure

Submitted by: Adelita Padilla

Added:
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/UnsupportedProjectTest.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Class1.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/ProjectAboveSolutionLevel.csproj
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Properties/
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Properties/AssemblyInfo.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Class1.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Properties/
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Properties/AssemblyInfo.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.csproj
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.sln
Modified:
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/PomConverter.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPandayImporter.cs
    incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/NPanday.ProjectImporterEngine-Test.csproj

Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/PomConverter.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/PomConverter.cs?rev=1572080&r1=1572079&r2=1572080&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/PomConverter.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/Converter/PomConverter.cs Wed Feb 26 15:05:26 2014
@@ -282,8 +282,8 @@ namespace NPanday.ProjectImporter.Conver
             }
             catch (Exception e)
             {
-                throw new Exception("Project Importer failed with project "+errorPrj
-                                   +" Project directory structure may not be supported. Cause: " + e.Message);
+                throw new Exception("Project Importer failed with project \""+ errorPrj
+                                   + "\". Project directory structure may not be supported.");
             }
 
             

Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPandayImporter.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPandayImporter.cs?rev=1572080&r1=1572079&r2=1572080&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPandayImporter.cs (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/main/csharp/NPandayImporter.cs Wed Feb 26 15:05:26 2014
@@ -154,7 +154,8 @@ namespace NPanday.ProjectImporter
                     holder = (string)project["ProjectFullPath"];
                     if (holder.Contains("..\\"))
                     {
-                        throw new Exception( "Invalid folder structure for project." + " One of it's path contains '..' : " + holder);
+                        throw new Exception("Project Importer failed with project \""+ holder
+                                   + "\". Project directory structure may not be supported.");
                     }
                 }
             }

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/UnsupportedProjectTest.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/UnsupportedProjectTest.cs?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/UnsupportedProjectTest.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/ImporterTests/UnsupportedProjectTest.cs Wed Feb 26 15:05:26 2014
@@ -0,0 +1,62 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+using NPanday.ProjectImporter;
+using NPanday.ProjectImporter.Digest;
+using NPanday.ProjectImporter.Digest.Model;
+using NPanday.ProjectImporter.Validator;
+using NUnit.Framework;
+
+namespace NPanday.ProjectImporter.ImporterTests
+{
+    [TestFixture]
+    public class UnsupportedProjectTest
+    {
+        private String slnFile;
+        private String warnMsg = String.Empty;
+        private DirectoryInfo UnsupportedProjectSource;
+        private DirectoryInfo UnsupportedProjectTarget;
+
+        public UnsupportedProjectTest()
+        {
+            UnsupportedProjectSource = new DirectoryInfo(FileUtil.GetBaseDirectory() + "\\src\\test\\resource\\UnsupportedProjectAboveSolution");
+            UnsupportedProjectTarget = new DirectoryInfo(FileUtil.GetBaseDirectory() + "\\src\\test\\resource\\UnsupportedProjectAboveSolutionCopy");
+        }
+
+        [TestFixtureSetUp]
+        public void TestSetUp()
+        {
+            FileUtil.CopyDirectory(UnsupportedProjectSource, UnsupportedProjectTarget);
+        }
+
+        [TestFixtureTearDown]
+        public void TestTearDown()
+        {
+            Directory.Delete(UnsupportedProjectTarget.FullName, true);
+        }
+
+        [Test]
+        public void TestProjectImporterWithNunitAndCheckedTestProject()
+        {
+            string[] generatedPoms = null;
+            try
+            {
+                slnFile = UnsupportedProjectTarget.FullName + "\\SampleApp\\SampleApp.sln";
+                generatedPoms = NPandayImporter.ImportProject(slnFile, "test", "test-plugin", "1.0", "", UncheckedProject, ref warnMsg);
+            }
+            catch
+            {
+                Assert.IsNull(generatedPoms);
+            }
+        }
+
+        public void UncheckedProject(ref ProjectDigest[] projectDigests, ProjectStructureType structureType, string solutionFile, ref string groupId, ref string artifactId, ref string version)
+        {
+            foreach (ProjectDigest pDigest in projectDigests)
+            {
+                pDigest.UnitTest = false;
+            }
+        }
+    }
+}

Modified: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/NPanday.ProjectImporterEngine-Test.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/NPanday.ProjectImporterEngine-Test.csproj?rev=1572080&r1=1572079&r2=1572080&view=diff
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/NPanday.ProjectImporterEngine-Test.csproj (original)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/csharp/NPanday.ProjectImporterEngine-Test.csproj Wed Feb 26 15:05:26 2014
@@ -79,6 +79,7 @@
     <Compile Include="ImporterTests\SampleVBDependencyTest.cs" />
     <Compile Include="ImporterTests\SampleWebProjectsTest.cs" />
     <Compile Include="ImporterTests\SingleModuleCSharpTest.cs" />
+    <Compile Include="ImporterTests\UnsupportedProjectTest.cs" />
     <Compile Include="ImporterTests\WebSiteWithCSharpProjectFile.cs" />
   </ItemGroup>
   <ItemGroup>

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Class1.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Class1.cs?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Class1.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Class1.cs Wed Feb 26 15:05:26 2014
@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace ProjectAboveSolutionLevel
+{
+    public class Class1
+    {
+    }
+}

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/ProjectAboveSolutionLevel.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/ProjectAboveSolutionLevel.csproj?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/ProjectAboveSolutionLevel.csproj (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/ProjectAboveSolutionLevel.csproj Wed Feb 26 15:05:26 2014
@@ -0,0 +1,50 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{93C16211-D9B9-4D41-97B8-EADEBE96FE2D}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>ProjectAboveSolutionLevel</RootNamespace>
+    <AssemblyName>ProjectAboveSolutionLevel</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Class1.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <WebReferences Include="Web References\" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Properties/AssemblyInfo.cs?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Properties/AssemblyInfo.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/ProjectAboveSolutionLevel/Properties/AssemblyInfo.cs Wed Feb 26 15:05:26 2014
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ProjectAboveSolutionLevel")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("ProjectAboveSolutionLevel")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("84e0f6e6-e8eb-447c-9d59-0fa664b3b71c")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers 
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Class1.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Class1.cs?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Class1.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Class1.cs Wed Feb 26 15:05:26 2014
@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace SampleApp
+{
+    public class Class1
+    {
+    }
+}

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Properties/AssemblyInfo.cs
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Properties/AssemblyInfo.cs?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Properties/AssemblyInfo.cs (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/Properties/AssemblyInfo.cs Wed Feb 26 15:05:26 2014
@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following 
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("SampleApp")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Microsoft")]
+[assembly: AssemblyProduct("SampleApp")]
+[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible 
+// to COM components.  If you need to access a type in this assembly from 
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("e9fbd915-b541-4cae-9874-1d6182131a06")]
+
+// Version information for an assembly consists of the following four values:
+//
+//      Major Version
+//      Minor Version 
+//      Build Number
+//      Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers 
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.csproj
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.csproj?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.csproj (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.csproj Wed Feb 26 15:05:26 2014
@@ -0,0 +1,50 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>8.0.50727</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{5C72538E-6D6F-47B3-BF16-C379662B6351}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>SampleApp</RootNamespace>
+    <AssemblyName>SampleApp</AssemblyName>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Class1.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <WebReferences Include="Web References\" />
+  </ItemGroup>
+  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file

Added: incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.sln
URL: http://svn.apache.org/viewvc/incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.sln?rev=1572080&view=auto
==============================================================================
--- incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.sln (added)
+++ incubator/npanday/trunk/dotnet/assemblies/NPanday.ProjectImporter/Engine/src/test/resource/UnsupportedProjectAboveSolution/SampleApp/SampleApp.sln Wed Feb 26 15:05:26 2014
@@ -0,0 +1,26 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleApp", "SampleApp.csproj", "{5C72538E-6D6F-47B3-BF16-C379662B6351}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectAboveSolutionLevel", "..\ProjectAboveSolutionLevel\ProjectAboveSolutionLevel.csproj", "{93C16211-D9B9-4D41-97B8-EADEBE96FE2D}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{5C72538E-6D6F-47B3-BF16-C379662B6351}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{5C72538E-6D6F-47B3-BF16-C379662B6351}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{5C72538E-6D6F-47B3-BF16-C379662B6351}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{5C72538E-6D6F-47B3-BF16-C379662B6351}.Release|Any CPU.Build.0 = Release|Any CPU
+		{93C16211-D9B9-4D41-97B8-EADEBE96FE2D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{93C16211-D9B9-4D41-97B8-EADEBE96FE2D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{93C16211-D9B9-4D41-97B8-EADEBE96FE2D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{93C16211-D9B9-4D41-97B8-EADEBE96FE2D}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal