mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
Attempting to fix the CI test when using Host.CopyFile
--HG-- branch : 1.4.x
This commit is contained in:
@@ -215,7 +215,7 @@ namespace Orchard.Specs.Hosting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void CopyFile(string source, string destination) {
|
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);
|
var target = _tempSite.Combine(destination);
|
||||||
|
|
||||||
Directory.CreateDirectory(target.DirectoryName);
|
Directory.CreateDirectory(target.DirectoryName);
|
||||||
|
|||||||
Reference in New Issue
Block a user