in

Platinum Bay

Peace, Love and Visual Studio Team System

.NETicated

VsTemplatePaths: Even Google Doesn't Know

For that matter, neither did Live, Yahoo, Lycos, or even MSDN.  DogPile gave me twelve results that, well, were from the dog pile; none of them were related and some were just blatent advertising.  Ask Jeeves must be on vacation.  Mamma.com too.  LookSmart really didn't.  And I was disappointed with the view from AltaVista; it must be cloudy up there.

What was my query?

The "VsTemplatePaths" task was not given a value for the required parameter "Language"

and

VsTemplatePaths

For those of you playing the home game, that's '...Microsoft.VsSDK.targets(347,5): error MSB4044'.  And I'm really quite proud!  It would appear that I am the first person to ever get an error related to, or even inquire about VsTemplatePaths.

The short story is that I created a Visual Studio MPF project with VSSDK Assist, and am trying to add project and project item templates.  The build actions get set to ZipProject and ZipItem respectively.  The real question now is how do I get past this error, and more importantly, can I finially specify the deployment path for the zip files to be the Common7\IDE\ProjectTemplates and ItemTemplates folder instead of the user template directory?

Comments

August 28, 2007 2:06 PM

I've got the similar error.

My workaround:

define VsTemplateLanguage property in the project file, as far as I understand this property must contain the same value as ProjectType property in the .vstemplate file.

Here are snippet from my project, which contains .vstemplate file:

<PropertyGroup>

<VsTemplateLanguage>CSharp</VsTemplateLanguage>

<TargetRegistryRoot>Software\Microsoft\VisualStudio\8.0Exp</TargetRegistryRoot>

<RegisterOutputPackage>true</RegisterOutputPackage>

</PropertyGroup>

In this case deployment path for project items is Common7\IDE\ItemTemplatesExp\CSharp. I believe "Exp" suffix means "experimental", so if value of the TargetRegistryRoot will be Software\Microsoft\VisualStudio\8.0 items will be deployed in Common7\IDE\ItemTemplates\CSharp.

A couple of links which can be usefull

207.46.236.188/.../ShowPost.aspx

forums.microsoft.com/.../ShowPost.aspx

Hope this helps

Sorry for bad english :)

Alex
 

August 29, 2007 6:56 AM

Alex, thanks!  I arrived at the same conclusion after diffing one of my other project files.  Also, if you dive into the Microsoft.VsSDK.Build.Tasks.dll, you'll see that it does in fact concatenate the value of the template path registry key, and the language specified.  I haven't had time to blog about this yet.

Thanks again.

 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews has been working as a developer for more than 8 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. He has firsthand developer experience with a variety of languages, including Java, VB, and .NET. Most recently, he has been immersed in SharePoint. He is currently employed at RDA Corporation in Philadelphia, PA, as a Software Engineer and a team member in the Architectural Guidance evangelism team. Steve is also an MTCS (x2), ICSOO, and .NET fanatic.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.