Error: canonical TargetFrameworkOverride was already defined for canonical skipRestore #473

Closed
opened 2025-08-09 17:16:25 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @sylvaincaillot on 8/25/2017

Trying to create templates, I have the following error for Aurelia, vue and knockout templates:

Option variant - for canonical TargetFrameworkOverride was already defined for canonical skipRestore
   at Microsoft.TemplateEngine.Cli.ExtendedCommandParser.MapTemplateParamToCanon
ical(String variant, String canonical)
   at Microsoft.TemplateEngine.Cli.ExtendedCommandParser.SetupTemplateParameters
(IParameterSet allParams, IReadOnlyDictionary`2 longNameOverrides, IReadOnlyDict
ionary`2 shortNameOverrides)
   at Microsoft.TemplateEngine.Cli.New3Command.ParseTemplateArgs(ITemplateInfo t
emplateInfo)
   at Microsoft.TemplateEngine.Cli.New3Command.<EnterSingularTemplateManipulatio
nFlowAsync>d__64.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAw
aiter.GetResult()
   at Microsoft.TemplateEngine.Cli.New3Command.<EnterTemplateManipulationFlowAsy
nc>d__65.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot
ification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAw
aiter.GetResult()
   at Microsoft.TemplateEngine.Cli.New3Command.<ExecuteAsync>d__66.MoveNext()

It works fine for react and angular.

I am using the following command line:
dotnet new vue

Thank you

S.

*Originally created by @sylvaincaillot on 8/25/2017* Trying to create templates, I have the following error for Aurelia, vue and knockout templates: ``` Option variant - for canonical TargetFrameworkOverride was already defined for canonical skipRestore at Microsoft.TemplateEngine.Cli.ExtendedCommandParser.MapTemplateParamToCanon ical(String variant, String canonical) at Microsoft.TemplateEngine.Cli.ExtendedCommandParser.SetupTemplateParameters (IParameterSet allParams, IReadOnlyDictionary`2 longNameOverrides, IReadOnlyDict ionary`2 shortNameOverrides) at Microsoft.TemplateEngine.Cli.New3Command.ParseTemplateArgs(ITemplateInfo t emplateInfo) at Microsoft.TemplateEngine.Cli.New3Command.<EnterSingularTemplateManipulatio nFlowAsync>d__64.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAw aiter.GetResult() at Microsoft.TemplateEngine.Cli.New3Command.<EnterTemplateManipulationFlowAsy nc>d__65.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNot ification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAw aiter.GetResult() at Microsoft.TemplateEngine.Cli.New3Command.<ExecuteAsync>d__66.MoveNext() ``` It works fine for react and angular. I am using the following command line: `dotnet new vue` Thank you S.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#473
No description provided.