Wednesday, April 27, 2011

[FeatureBuilder] NotSupportedException when using Template

Hello everyone,

First of all, Thanks for FeatureBuilder !

I want to build an extension which works like the "Line Count" function in the VSXPack Template. (ie : a function which work in every project, not only the Template project created with Feature Builder). I tried two ways to do that

 

- First, I created my extension with the Starter Pack + Tools Template. My extension works fine but I want to enable it on every project CSharp I create. How can I do that ?

 

- Secondly, I tried to start from the VSXPack ... but when I want to find my template T4 with this code

 

string t4Path = UriReferenceService.ResolveUri<FeatureContent>(new System.Uri("content://./Templates/Text/ClassTemplate.t4")).Path; 

 

I have this exception :  

{"Failed to resolve provider for scheme content and type Microsoft.VisualStudio.TeamArchitect.PowerTools.Features.FeatureContent"}

The InnerException is 

{"Feature '.' not found"}

PS : I added the dependency IFxrUriReferenceService in my Command Class.

Is someone can help me ?

Thanks a lot !

 


Source: http://social.msdn.microsoft.com/Forums/en-US/vsarch/thread/ac2435ce-36b2-420c-9b08-38ab6a5be904

enterprise architecture conference chicago architecture tour boat architecture programs free cool architecture architecture photography

No comments:

Post a Comment