Hopefully I can explain this in a clear question to avoid confusion (since I'm a bit confused myself).
I have a dll, I'll call MyCommonStuff. I have an enum object defined in a module in this assembly here:
MyCommonStuff\Enums\ImportEnum.cs
Like this:
namespace MyCommonStuff.ImportEnum
{
public enum ImportType
{
Blah1 = 0,
Blah2 = 1,
Blah3 = 2
}
}
I'd like to import this into a PowerShell script at run-time to avoid having to manually copy it over and have to sync it up in the event that it should change.
Could someone enlighten me on how I can go about this?