From 7648d4f3206d51294b6c231b6ee02a5c77701302 Mon Sep 17 00:00:00 2001 From: jao28 Date: Thu, 10 May 2012 11:38:28 -0700 Subject: [PATCH] Attempting to fix the CI test when using Host.CopyFile --HG-- branch : 1.4.x --- src/Orchard.Specs/Hosting/WebHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Specs/Hosting/WebHost.cs b/src/Orchard.Specs/Hosting/WebHost.cs index 959da42d7..bba7c9e64 100644 --- a/src/Orchard.Specs/Hosting/WebHost.cs +++ b/src/Orchard.Specs/Hosting/WebHost.cs @@ -215,7 +215,7 @@ namespace Orchard.Specs.Hosting { } public void CopyFile(string source, string destination) { - var origin = Path.Current.Parent.Combine(source); + var origin = Path.Get(Assembly.GetCallingAssembly().Location).Parent.Parent.Combine(source); var target = _tempSite.Combine(destination); Directory.CreateDirectory(target.DirectoryName);