Skip to content

Commit 29c234d

Browse files
authored
fix(core): obey path in solution-file parameter when generating projects (#762)
1 parent 772303e commit 29c234d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/generators/utils/add-to-sln.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ export function addToSolutionFile(
3030

3131
if (solutionFile) {
3232
if (!host.exists(solutionFile)) {
33+
const { name, dir } = parse(solutionFile);
3334
dotnetClient.new('sln', {
34-
name: parse(solutionFile).name,
35-
output: host.root,
35+
name,
36+
output: dir,
3637
});
3738
}
3839
const relativePath = relative(dotnetClient.cwd || host.root, host.root);

0 commit comments

Comments
 (0)