I see this among the results: GAC Version Location ---- ------------- -------------------- False v4.0.30319 C:\Users\jdav.IDI\AppData\Local\Temporary Projects\Test\bin\Debug\Test.dll
However, when I attempt to use the Add method like so: [AddClass]]
It errors with: Unable to find type [AddClass]: make sure that the assembly containing this type is loaded. At line:1 char:1 + [AddClass]::Add(1,2) + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (AddClass:TypeName) , RuntimeException + FullyQualifiedErrorId : TypeNotFound
I've tried this both from v3 and v2 environments. I figure I'm missing something very fundamental...please enlighten me! Thanks!
by poshoholic at 2013-04-11 14:24:27
You need to either fully qualify the type name, like this][MyMethods.AddClass]]or you need to create a type accelerator for AddClass that maps to MyMethods.AddClass.
See this article for more details about creating type accelerators so that you don't have to fully-qualify the .NET types you work with: