Closed lrs5 closed 1 year ago
Thanks for reporting. Some more questions to help me identify what's gone wrong.
Have you previously used an earlier version of the extension? Are you adding to an existing solution, or is that while creating a new one? Does it also occur if you create the project on the C drive?
@lrs5 The problem is due to there being a $
in the directory names.
I'll look at adding the capability to handle this scenario, but in the meantime, you can try generating elsewhere.
The latest version on the marketplace has a fix for this. Let me know if it doesn't or if you have any other issues or suggestions
Error message when "Creating project": "Something went wrong :-( Error executing 'Microsoft.Templates.Core.PostActions.Catalog.Merge.MergePostAction. Related templates: Project.7."
"System.Exception: Error executing 'Microsoft.Templates.Core.PostActions.Catalog.Merge.MergePostAction'. Related template: Project.7. ---> System.IO.FileNotFoundException: There is no merge target for file 'G:\OneDrive\$Dev\C#\$Maui\MauiApp3\MauiApp3_postaction.csproj'. Related Template: 'Project.7'. at Microsoft.Templates.Core.PostActions.Catalog.Merge.MergePostAction.HandleFileNotFound(String originalFilePath, String suffix) at Microsoft.Templates.Core.PostActions.Catalog.Merge.MergePostAction.ExecuteInternal() at Microsoft.Templates.Core.PostActions.PostAction.Execute() --- End of inner exception stack trace --- at Microsoft.Templates.Core.PostActions.PostAction.Execute() at Microsoft.Templates.Core.Gen.GenController.ExecutePostActions(GenInfo genInfo, ITemplateCreationResult generationResult) at Microsoft.Templates.Core.Gen.GenController.d4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.Templates.Core.Gen.NewProjectGenController.d 4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.Templates.UI.Services.GenerationService.d__5.MoveNext()