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

Derived parameter for file renaming #2126

Closed
PeterAnaniaHC opened this issue Sep 27, 2019 · 1 comment · Fixed by #2529
Closed

Derived parameter for file renaming #2126

PeterAnaniaHC opened this issue Sep 27, 2019 · 1 comment · Fixed by #2529
Assignees
Labels
size:1.0 triaged The issue was evaluated by the triage team, placed on correct area, next action defined.

Comments

@PeterAnaniaHC
Copy link

Guys I'm really sorry for bothering you, but I can't seem to find any information on derived parameters.

Specifically I'm trying to use this to rename a file, and I found a reference to: #1194

From this post: #1238

And I tried implementing the a derived parameter for file renaming as shown, but it wouldn't work for me. If I didn't supply the parameter in the dotnet new command (thinking it's derived why do i have to supply it?) I would receive an error that would say 'value cannot be null - key'. If I supplied the parameter with no value then I would get the same message, but with an addition 50 lines of errors. I didn't try it with name and value, because at that point I could just use a regular parameter.

There's very little material about this online, can you give me a working example?

Thanks,

Peter

@donJoseLuis donJoseLuis added need-discussion Requires internal discussion prior to answering in an issue. triaged The issue was evaluated by the triage team, placed on correct area, next action defined. needs-prioritization labels Mar 20, 2020
@donJoseLuis donJoseLuis added P1 size:1.0 and removed need-discussion Requires internal discussion prior to answering in an issue. needs-prioritization labels Mar 24, 2020
@vlada-shubina vlada-shubina self-assigned this Sep 11, 2020
vlada-shubina added a commit to vlada-shubina/templating that referenced this issue Sep 16, 2020
Reference for template.json - updates the symbols description
Runnable Project Templates: replaces duplicated symbols description with link to 'Reference for template.json'
vlada-shubina added a commit to vlada-shubina/templating that referenced this issue Oct 19, 2020
Reference for template.json - updates the symbols description
Runnable Project Templates: replaces duplicated symbols description with link to 'Reference for template.json'
vlada-shubina added a commit that referenced this issue Oct 19, 2020
* fixes #2126 fixes #2513
Reference for template.json - updates the symbols description
Runnable Project Templates: replaces duplicated symbols description with link to 'Reference for template.json'
@vlada-shubina
Copy link
Member

Documented in this article.

vlada-shubina added a commit to vlada-shubina/templating that referenced this issue Dec 18, 2020
* fixes dotnet#2126 fixes dotnet#2513
Reference for template.json - updates the symbols description
Runnable Project Templates: replaces duplicated symbols description with link to 'Reference for template.json'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:1.0 triaged The issue was evaluated by the triage team, placed on correct area, next action defined.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants