File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public class EnvironmentSetupHelper
53
53
54
54
private AzureAccount testAccount ;
55
55
56
- private const string PackageDirectoryFromCommon = @"..\..\..\..\Package\Debug" ;
56
+ private static string PackageDirectoryFromCommon { get ; } = GetConfigDirectory ( ) ;
57
57
58
58
public static string PackageDirectory { get ; } = GetConfigDirectory ( ) ;
59
59
public static string StackDirectory { get ; } = GetConfigDirectory ( "Stack" ) ;
@@ -184,7 +184,7 @@ private static string ProbeForSrcDirectory()
184
184
directoryPath = Path . Combine ( directoryPath , ".." ) ;
185
185
}
186
186
187
- string result = Directory . Exists ( directoryPath ) ? Path . Combine ( directoryPath , "src" ) : null ;
187
+ string result = Directory . Exists ( directoryPath ) ? Path . GetFullPath ( Path . Combine ( directoryPath , "src" ) ) : null ;
188
188
return result ;
189
189
}
190
190
@@ -198,6 +198,10 @@ private static string GetConfigDirectory(string targetDirectory = "Package")
198
198
if ( Directory . Exists ( baseDirectory ) )
199
199
{
200
200
result = Directory . EnumerateDirectories ( baseDirectory ) . FirstOrDefault ( ) ;
201
+ if ( result != null )
202
+ {
203
+ result = Path . GetFullPath ( result ) ;
204
+ }
201
205
}
202
206
}
203
207
You can’t perform that action at this time.
0 commit comments