ligershark / side-waffle

A collection of Item- and Project Templates for Visual Studio
Other
657 stars 205 forks source link

Adding template reference fails to pull DefaultName from project. #394

Open codewithtyler opened 7 years ago

codewithtyler commented 7 years ago

System Information:

  1. Windows 10 Pro x64
  2. Visual Studio Community 2015 Update 3
  3. SideWaffle version 1.21.400

Description

In the _project.vstemplate.xml file we have a couple of replacements setup that should pull the project name from the project when it's created. It's not working for one of the replacements.

Steps to Recreate

  1. Create a VSIX Project.
  2. Create an "AngularJS and Web API - Empty" project in the same solution.
  3. Right click on the VSIX project and add a Template Reference to the Angular project.
  4. Go to the _Definitions folder in the Angular project and open the _project.vstemplate.xml file.
  5. In this file you will see the <DefaultName> element containing $rootnamespace$ instead of the project's name.

@sayedihashimi Any ideas what might cause the replacements to fail?

codewithtyler commented 7 years ago

I tested this on a second machine the other day and can confirm that it's definitely an issue that was introduced recently.

codewithtyler commented 7 years ago

@sayedihashimi any thoughts on this?

sayedihashimi commented 7 years ago

@RandomlyKnighted I'm not sure. I think we will need to debug it to see what may be happening. I looked to see if I could find anything simple, but didn't find anything.