ligershark / template-builder

This project will output a NuGet package which can be used to help create Visual Studio Item Templates and Project templates
Other
42 stars 28 forks source link

Template Builder causes the TemplatePack project to freeze. #67

Open farid-am opened 9 years ago

farid-am commented 9 years ago

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?

codewithtyler commented 9 years ago

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

farid-am commented 9 years ago

I am using version 1.1.3

sayedihashimi commented 9 years ago

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?

farid-am commented 9 years ago

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.

ghost commented 9 years ago

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.

gulbanana commented 8 years ago

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