Skip to content

Fix project references#18

Merged
seveneleven merged 2 commits intodevfrom
fix/project-references
Apr 29, 2025
Merged

Fix project references#18
seveneleven merged 2 commits intodevfrom
fix/project-references

Conversation

@seveneleven
Copy link
Copy Markdown
Collaborator

No description provided.

By removing filenames from paths, the relative path to the reference will be
created correctly.
When adding steps, the step's project files haven't been added to the
`.App.csproj` and thus weren't loaded on startup.
@seveneleven seveneleven added the bug Something isn't working label Apr 28, 2025
@seveneleven seveneleven self-assigned this Apr 28, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses fixing project references by updating the relative path calculation and refactoring functions for adding project references to separate concerns between test projects and the startup application.

  • Updated relative path calculation in ProjectFileManipulation.cs to derive paths from directory names.
  • Refactored AddStep.cs to separate startup application project reference addition from test projects processing.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Moryx.Cli.Commands/Components/ProjectFileManipulation.cs Adjusted relative path calculation for project file references.
src/Moryx.Cli.Commands/AddStep.cs Split project reference addition into separate functions for startup application and tests.
Comments suppressed due to low confidence (1)

src/Moryx.Cli.Commands/AddStep.cs:47

  • [nitpick] Consider renaming the loop variable 'project' to 'projectFile' for improved clarity, as it represents a project file path.
ProjectFileManipulation.AddProjectReference(applicationProjectFile, project);

@seveneleven seveneleven merged commit 9039a0d into dev Apr 29, 2025
5 checks passed
@seveneleven seveneleven deleted the fix/project-references branch April 30, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants