Skip to content

Can the "Add Project Reference Post Action" be used to reference an existing project? #7833

Discussion options

You must be logged in to vote

After reviewing the source it appears that the current version does not support this functionality, although it potentially could or should. This also applies to #7508.

The reason behind this limitation is that the PostActionProcessor only finds project files to add references to if:

  • The files listed in the "targetFiles" property within template.json can be associated with an IFileChange. Which is not the case for existing project files because the TemplateEngine does not generate corresponding IFileChange instances.

  • No "targetFiles" are specified and the files are in the root of the output directory or its parent. Which doesn't work for existing projects since the .csproj file for su…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by david-acm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant