I am trying to use a set of static classes/variables in a plugin I am using and I keep getting an error:
MyNamespace.Foo MyNamespace.Foos.get_ClampName(); not found (full error info below)
I have created a Nuget package (on my Azure DevOps Artifacts) that has the following class:
public struct Foo{
// added implicit operators to convert from string to
// string and vice-versa as well as storing the string
}
public static class Foos{
public static Foo ClampName => "ClampNameAttribute";
}
The package is being applied in a .Net Framework (4.7.2) class library and is being used like this in the library:
public class Bar{
public void DoStuff(){
string l_strClampName = thing.Attribute[MyNamespace.Foo.ClampName] + "";
}
}
The library is being loaded into another app via VBA, like this:
Dim oInterface as New Bar
Public Sub DoStuff()
oInterface.DoStuff
End Sub
This will throw the error:
Run-time error -2146233069 (80131513)':
Method not found: 'MyNamespace.Foo MyNamespace.Foos.get_ClampName()'
Unfortunately, I can't change the process that I am using to load this, so I HAVE to go through VBA to get this working. Is there something that I am missing?