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

Template Builder causes the TemplatePack project to freeze. #67

Open
farid-am opened this issue Apr 9, 2015 · 6 comments
Open

Template Builder causes the TemplatePack project to freeze. #67

farid-am opened this issue Apr 9, 2015 · 6 comments

Comments

@farid-am
Copy link

farid-am commented Apr 9, 2015

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
Copy link
Member

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

@farid-am
Copy link
Author

farid-am commented Apr 9, 2015

I am using version 1.1.3

@sayedihashimi
Copy link
Member

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
Copy link
Author

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
Copy link

ghost commented Jul 3, 2015

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants