-
Notifications
You must be signed in to change notification settings - Fork 378
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
Add to solution action ("D396686C-DE0E-4DE6-906D-291CD29FC5DE") fails #2453
Comments
Hello @gurustron! As for your first question: it seems that add to solution action works badly when a target directory is specified: As a possible workaround, if you may use the default target directory and use paths that are relative to the directory containing the .template.config folder ( Well, concerning your second question: as far as I do know, the replacement and the post-action works there. You have a typo in your template.json: |
@AR-May Thank you for the info! |
Agreed on the following, in case of following template structure
the following template configuration:
expected outcome
The fix should be implemented considering above, the primary outputs returned by API should contain |
The issue with incorrect primary outputs in case non-default target or source rename is used is fixed in #2690. |
I've stumbled across two scenarios when add to solution action fails. Repository with reproducers.
csproj
) are placed to nested folder (not in the same as.template.config
) replace forprimaryOutputs.path
forcsproj
is not performed:folder strucutre:
postaction.args.primaryOutputIndexes
is omitted in template.json the replace is not performed and folder is not added to the attempted addition despite next written in the schema "if not specified, all primary outputs are used":When project files are on the same level and
postaction.args.primaryOutputIndexes
is specified - everything works:I have 5.0 and 3.1.401 sdks installed (using former one via global.json)
The text was updated successfully, but these errors were encountered: