Fixed relative path handling in add command
This commit is contained in:
parent
6af9328e14
commit
c970412a66
@ -96,7 +96,12 @@ class AddService(CommandABC):
|
|||||||
Console.error(f'Project reference already exists.')
|
Console.error(f'Project reference already exists.')
|
||||||
return
|
return
|
||||||
|
|
||||||
build_settings.project_references.append(f'../{target}')
|
if self._workspace is None:
|
||||||
|
target = f'../{target}'
|
||||||
|
else:
|
||||||
|
target = target.replace('src', '..')
|
||||||
|
|
||||||
|
build_settings.project_references.append(target)
|
||||||
|
|
||||||
Console.spinner(
|
Console.spinner(
|
||||||
f'Editing {source}',
|
f'Editing {source}',
|
||||||
|
Loading…
Reference in New Issue
Block a user