Skip to content

Commit 54120ff

Browse files
waldekmastykarzgarrytrinder
authored andcommitted
Fixes resolving relative mocks path from args. Closes #310
1 parent e016550 commit 54120ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

m365-developer-proxy-plugins/MockResponses/MockResponsePlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private void OnOptionsLoaded(object? sender, OptionsLoadedArgs e) {
7777
// update the name of the mocks file to load from if supplied
7878
string? mocksFile = context.ParseResult.GetValueForOption(_mocksFile);
7979
if (mocksFile is not null) {
80-
_configuration.MocksFile = mocksFile;
80+
_configuration.MocksFile = Path.GetFullPath(ProxyUtils.ReplacePathTokens(mocksFile));
8181
}
8282

8383
_configuration.MocksFile = Path.GetFullPath(ProxyUtils.ReplacePathTokens(_configuration.MocksFile), Path.GetDirectoryName(_proxyConfiguration?.ConfigFile ?? string.Empty) ?? string.Empty);

0 commit comments

Comments
 (0)