Skip to content

Commit

Permalink
fix(core): obey path in solution-file parameter when generating proje…
Browse files Browse the repository at this point in the history
…cts (#762)
  • Loading branch information
AgentEnder committed Sep 20, 2023
1 parent 772303e commit 29c234d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/generators/utils/add-to-sln.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export function addToSolutionFile(

if (solutionFile) {
if (!host.exists(solutionFile)) {
const { name, dir } = parse(solutionFile);
dotnetClient.new('sln', {
name: parse(solutionFile).name,
output: host.root,
name,
output: dir,
});
}
const relativePath = relative(dotnetClient.cwd || host.root, host.root);
Expand Down

0 comments on commit 29c234d

Please sign in to comment.