Skip to content

Commit

Permalink
fix: use test project name in msbuild task
Browse files Browse the repository at this point in the history
  • Loading branch information
photomoose authored and AgentEnder committed Aug 24, 2021
1 parent b9c1980 commit cc29ea9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/generators/utils/generate-test-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export async function GenerateTestProject(
dotnetClient.new(schema.testTemplate, newParams);

if (!isDryRun() && !schema.skipOutputPathManipulation) {
await manipulateXmlProjectFile(host, { ...schema, projectRoot: testRoot });
await manipulateXmlProjectFile(host, {
...schema,
projectRoot: testRoot,
projectName: testProjectName,
});
const testCsProj = await findProjectFileInPath(testRoot);
const baseCsProj = await findProjectFileInPath(schema.projectRoot);
dotnetClient.addProjectReference(testCsProj, baseCsProj);
Expand Down

0 comments on commit cc29ea9

Please sign in to comment.