This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public static string MapAbsolutePath(this string relativePath, string appendPart
18
18
}
19
19
20
20
/// <summary>
21
- /// Maps the path of a file in the context of a VS project in a Consle App
21
+ /// Maps the path of a file in the context of a VS project in a Console App
22
22
/// </summary>
23
23
/// <param name="relativePath">the relative path</param>
24
24
/// <returns>the absolute path</returns>
@@ -33,6 +33,18 @@ public static string MapProjectPath(this string relativePath)
33
33
return PclExport . Instance . MapAbsolutePath ( relativePath , $ "{ sep } ..{ sep } ..{ sep } ..") ;
34
34
#endif
35
35
}
36
+ /// <summary>
37
+ /// Maps the path of a file in the context of a VS 2017+ multi-platform project in a Console App
38
+ /// </summary>
39
+ /// <param name="relativePath">the relative path</param>
40
+ /// <returns>the absolute path</returns>
41
+ /// <remarks>Assumes static content is two directories above the /bin/ directory,
42
+ /// eg. in a unit test scenario the assembly would be in /bin/Debug/net45</remarks>
43
+ public static string MapProjectPlatformPath ( this string relativePath )
44
+ {
45
+ var sep = PclExport . Instance . DirSep ;
46
+ return PclExport . Instance . MapAbsolutePath ( relativePath , $ "{ sep } ..{ sep } ..{ sep } ..") ;
47
+ }
36
48
37
49
/// <summary>
38
50
/// Maps the path of a file in the bin\ folder of a self-hosted scenario
You can’t perform that action at this time.
0 commit comments