Fixing orchard.proj spec build target case in specs/webhost, removing unwanted, warning-inducing references.

CR: Louis

--HG--
branch : dev
This commit is contained in:
Bertrand Le Roy
2010-05-10 14:08:12 -07:00
parent bfc6edc1dd
commit 6187110957
3 changed files with 6 additions and 5 deletions

View File

@@ -17,7 +17,12 @@ namespace Orchard.Specs.Hosting {
_tempSite = Path.Get(System.IO.Path.GetTempFileName()).Delete().CreateDirectory();
_orchardWebPath = baseDir.Parent.Parent.Parent.Combine("Orchard.Web");
// Trying the two known relative paths to the Orchard.Web directory.
// The second one is for the target "spec" in orchard.proj.
_orchardWebPath = baseDir.Up(3).Combine("Orchard.Web");
if (!_orchardWebPath.Exists) {
_orchardWebPath = baseDir.Up(2).Combine("src").Combine("Orchard.Web");
}
baseDir.Combine("Hosting").Combine(templateName)
.DeepCopy(_tempSite);

View File

@@ -63,8 +63,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\fluentnhibernate\log4net.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="Microsoft.VisualStudio.TeamSystem.Data.UnitTesting, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<Reference Include="NHibernate, Version=2.1.2.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\fluentnhibernate\NHibernate.dll</HintPath>