|
Hi again,
Is it possible at all to use generic types, like List<T>, as an argument type?
Example declaration : <Argument Name="Test" Type="System.Collections.Generic.List<T>, mscorlib, Version=2.0.0.0" />
At compile-time and while registering I get no error, but when I try to use the Recipe that uses this argument, I get :
System.TypeLoadException: Could not load type 'System.Collections.Generic.List<T>' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.AliasResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError) at Microsoft.Practices.RecipeFramework.GuidancePackage.EnsureInitializeMetadataForCurrentRecipe() at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments) at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference) at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute() at Microsoft.Practices.RecipeFramework.AssetReference.Execute() at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec() at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
|