According to SqlServerTypes
README I need to put this line:
SqlServerTypes.Utilities.LoadNativeAssemblies(AppDomain.CurrentDomain.BaseDirectory);
before doing spatial operations for a desktop application (mine is a console app).
However it outputs an error on build:
'Utilities' is inaccessible due to its protection level
I went into the packages folder and found Loader.cs
and the Utilities
class is in fact internal? How would this have ever worked? I couldn't find anyone else with this problem and they are using it with no problems.
If I F12 into the decompiled Utilities
it is also marked as internal.
I am using version 11.0.2
.