ligershark / sidewafflev2

Other
30 stars 11 forks source link

"Use previews of the .NET Core SDK" Error Trying to Use Template #47

Closed kyleherzog closed 4 years ago

kyleherzog commented 4 years ago

My template project is giving an error when I try to use it. The message is 'To create this project type, go to Tools | Options | Environment | Preview Features and check "Use previews of the .NET Core SDK"'. Selecting the previews option does not resolve the error though, even after restarting Visual Studio.

I can recreate the error doing the following. I create a new asp.net core 2.2 MVC app. I create the template with the an Identity of Blah.Template.CSharp and a Group identity of Blah.Template. I then add the Template Pack Project Template (SideWaffle) project to the solution. Running this now works fine. However if i try to rename the template I start getting the error. To rename it, in the template.json, I am modifying the identity and groupIdentity values. In the template.vstemplate file, I'm modifying the TemplateID and $groupid$ values to match what was entered in the template.json. Running this throws the error listed above. I have tried resetting my experiment instance as well, but same result.

I'm running Visual Studio Enterprise 2019, (v16.3.9) with SideWaffle Template Creator 0.5.

kyleherzog commented 4 years ago

Apparently, there is some kind of extension caching going on in VS.? If I update the version number in .vsixmanifest, the issue goes away. I had been resetting my experimental instance between runs, but evidently that is not enough of a fresh start.