template-builder icon indicating copy to clipboard operation
template-builder copied to clipboard

Template Builder causes the TemplatePack project to freeze.

Open farid-am opened this issue 10 years ago • 6 comments
trafficstars

Template Builder causes the TemplatePack project to freeze when I try to change something in the project. Every time I add, delete, rename a file or every other project change. The freeze can take up to 5 minutes or more.

When I remove the TemplateBuilderTargets everything goes back to normal.

Can this be improved or what can I do to fix this?

farid-am avatar Apr 09 '15 13:04 farid-am

@farid-am what version of TemplateBuilder are you using?

codewithtyler avatar Apr 09 '15 14:04 codewithtyler

I am using version 1.1.3

farid-am avatar Apr 09 '15 14:04 farid-am

I noticed the issue with SideWaffle but I assumed that was because we had a lot of files in the project. I never tried removing the .targets file to see what the experience is. Are you saying that if you remove the .targets file adding/removing files is much quicker?

sayedihashimi avatar Apr 09 '15 21:04 sayedihashimi

That's correct. If I remove the import of TemplateBuilderTargets, then I can edit the TemplatePack project without any problems.

update: Workaround:

  1. Before loading the project, set "ls-ItemTemplatesExtendBuild" -> false (In the .targets file)
  2. Load the vsix project
  3. set "ls-ItemTemplatesExtendBuild" -> true (for a correct build)

Workaround ensures that changes the project run smoothly and when building a correct vsix gets created.

My knowledge of the using targets and tasks is very limited, so I hope you can find a solution to this problem.

farid-am avatar Apr 10 '15 12:04 farid-am

I've noticed TemplateBuilder seems to do some kind of build when a file is added or deleted.

I copied one of my project template folders to a new sibling folder. After having VS freeze for a couple minutes, obj/Debug/ls-templates had a new .zip for the copied template as well as a new folder for it in obj/Debug/ls-templates/ProjectTemplate, despite me not building the solution. The new .zip and folder in obj only contained the .vstemplate file and not the rest of the template files. No output appears in the Build Output window.

I'm not sure if this action is by design or a bug.

ghost avatar Jul 03 '15 20:07 ghost

i am experiencing this issue also. the described workaround works for me.

gulbanana avatar Oct 09 '15 10:10 gulbanana