Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow 'add project reference' post action for existing projects #7854

Open
david-acm opened this issue Apr 10, 2024 · 0 comments
Open

Allow 'add project reference' post action for existing projects #7854

david-acm opened this issue Apr 10, 2024 · 0 comments

Comments

@david-acm
Copy link

david-acm commented Apr 10, 2024

Is your feature request related to a problem? Please describe.

Not a problem, however, not being able to add project references to existing projects feels like a feature that should work as expressed by #7508 and #7833, and also since a similar behavior is already working for solution files with the add project to solution post action.

Describe the solution you'd like.

The main use case for this feature is to automate the project reference for projects instantiated with the template tool.

Given that:

  • There is an existing project (not generated by the templating engine).
  • And, the project is in its own folder, not the solution root.
  • And the template has a reference project post action.
  • And the post action uses the "targetFiles" pointing to path of the existing project, relative to the solution root.

When:

  • A template is instantiated in the solution root folder

Then:

  • A new project reference is added to the existing project.
  • The following error is not returned Unable to determine which project file to add the reference to. Post action failed.

Additional context

The current behavior and a potential solution is outlined in this comment: #7833 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant